Re: [PHP-DB] delete a record not working

2004-06-16 Thread Philip Thompson
Yeah, you should have a single apostrophe around the $id. So it should read: mysql_query("DELETE FROM open_trades WHERE id='$id'"); That should do it. ~Philip On Jun 16, 2004, at 12:04 AM, Justin wrote: Hello, I have a simple script to retrieve and then delete a selected script, but it does not

[PHP-DB] delete a record not working

2004-06-15 Thread Justin
Hello, I have a simple script to retrieve and then delete a selected script, but it does not work. When I hit the button I get: 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 'id' at line 11064" Any help woul