How do I delete a record, upon the user clicking the check box displayed next to each record, and a delete button being clicked?
<?php
$con = mysql_connect("localhost","peter","abc123");
if (!$con)
{
die(mysql_error());
}
mysql_select_db("db", $con);
$result = mysql_query("SELECT * FROM person");
while($row = mysql_fetch_array($result))
{
echo '<input type="checkbox" name="checkbox" value="checkbox">';
echo $row['FirstName'];
echo $row['LastName'].'<br /><br />';
}
mysql_close($con);
?>