List:General Discussion« Previous MessageNext Message »
From:Paul DuBois Date:November 26 2001 12:03am
Subject:Re: DELETE does not work?
View as plain text  
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.

Thread
DELETE does not work?Gil G.26 Nov
  • Re: DELETE does not work?Paul DuBois26 Nov