<?include "conninfo.php";
$id=$_POST["id"];
$fn=$_POST["fname"];
$sn=$_POST["sname"];

//print_r($_POST);

$query="UPDATE people SET firstname='$fn', surname='$sn'
WHERE id=$id LIMIT 1";
$result=mysqli_query($link,$query);
header("location:showall.php");



?>