<?
include "conninfo.php";
$id=$_POST["id"];
// echo $id;   This will echo the id when someone clicks the delete button
$query="DELETE from people WHERE id=$id LIMIT 1"; 
//echo $query;
$result=mysqli_query($link,$query); //run query
header("location:showall.php"); //Takes it back to the showall page with the deleted row
?>