Here is the issue:
I pass a $photo_id value in the URL and want to delete the row with that photo_id.
When I submit, I get the message I would hope to but the record is not deleted. Any ideas what I am doing wrong?
Thanks for any help!!
Here is the code:
<html>
<body>
<?
################################ # # # # # # # # # # # # # # #
OPEN DATABASE CONNECTION
################################ # # # # # # # # # # # # # # #
$db = mysql_connect("xxxxx", "xxxxxxx", "xxxxxxxxxxx");
mysql_select_db("aft",$db);
################################ # # # # # # # # # # # # # # #
DELETE SPECIFIED ROW FROM TABLE
################################ # # # # # # # # # # # # # # #
$sql = "DELETE FROM photographs WHERE photo_id='$photo_id'";
$deleted="yes";
?>
<?
if ($deleted=="yes") {print "$photo_id DATA DELETED, THANK YOU<br>";}
?>
</body>
</html>