<?include "conninfo.php";
$id=$_POST["idtodelete"];  //get id number of button

$query="DELETE FROM people WHERE id=$id LIMIT 1";
$result=mysql_query($query);

header("location:showallwithdelete.php");//last thing 


?>