I'm new to PHP and have finally come up with the following code that outputs all information contained in a table to the screen,
whilst displaying a button beside each one.
Upon a record being selected for deletion by clicking on the appropriate "Delete" button,
How do I use a "Query String" to delete the particular record by ID?
$con = mysql_connect("localhost","peter","abc123");
die('Could not connect: ' . mysql_error());
$result = mysql_query("SELECT * FROM Birds");
if(mysql_error() != 0 || mysql_num_rows($result) == 0)
die("No database, or no data");
while($row = mysql_fetch_object($result))
echo $row->Name . "<br>";
echo $row->Species . "<br>";;
echo $row->Sex . "<br>";;
echo "<input type='submit' name='Submit' value='Delete'><br>";