<?include "conninfo.php";
$query="SELECT * FROM people";
$result=mysqli_query($link,$query)or die("didnt work");
$numrows=mysqli_num_rows($result);

	
	while($r=mysqli_fetch_array($result))
	{
	
	echo $r["id"]." ";
	echo $r["firstname"]." ";
	echo $r["surname"]." ";
	echo $r["favfood"]." ";
	echo $r["postcode"];
	?>
	<form action="delete.php" method="post">
	<input type="hidden" value="<?echo $r["id"];?>" name="id">
	<input type="submit" value="Delete">
	</form>
	
	<form action="enteredit.php" method="post">
	<input type="hidden" value="<?echo $r["id"];?>" name="id">
	<input type="submit" value="Edit">
	</form>
	
	<?
	}
?>