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.