Ok ive been over and over this the last few hours and it totally drove me friggn nuts. But finally got it working, so for anyone who has a similar problem and they cant delete rows in mysql with a php statement, this may help you. See below.

I did have this: $sql="DELETE FROM images WHERE id=$id"; but changed it to this: $sql=mysql_query("DELETE FROM images WHERE id=$id"); And it worked!

Leave a Reply

You must be logged in to post a comment.