At 6:59 PM -0500 11/25/01, Gil G. wrote: >Hello, > >If someone could give me a pointer on this issue: > >I have a table called "codes" with only one field "left". > >When trying this in PHP: >$result=mysql_query("DELETE FROM codes WHERE >left='$temp'"); > >I get a syntax error...
A syntax error from PHP or from MySQL? Might not be a problem with your query at all. If it is, try adding this line prior to the mysql_query() call: $temp = addslashes ($temp); Might be that $temp contains quotes or something. --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php