Jump to content

cannot delete rows


narjis

Recommended Posts

I am trying to delete a row from my table by the following query

$sql = mysql_query("DELETE FORM products WHERE id = '.$yesdelete."' LIMIT 1") or die(mysql_error());

but it gives the following mysql error

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE id = '5' LIMIT 1' at line 1

 

The same error is coming in phpmyadmin. Please somebody help me.

Link to comment
https://forums.phpfreaks.com/topic/239208-cannot-delete-rows/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.