<?include "conninfo.php";
$id=$_POST["theid"];

//echo $id;


$query="DELETE FROM people WHERE id=$id LIMIT 1";  //LIMIT 1 "belt and braces"

//echo $query;

$result=mysqli_query($link,$query);//run query

//header("location:showdatawithdelete.php");//redirect

echo "Record deleted";
?>
<br><br>
<a href="showdatawithdelete.php">Back to main page</a>