Re: SQL Query syntax error... Help?
| From: | Felix Kronlage | Date: | Sun, 15 Apr 2001 21:26:49 +0000 |
| Subject: | Re: SQL Query syntax error... Help? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-48653@lists.php.net to get a copy of this message | ||
On Sun, Apr 15, 2001 at 04:20:07PM -0500, Scott VanCaster wrote:
> Any idea what my problem is? I removed the WHERE id=$id and it works, but
> updates every record of course :(
Have you tried putting the $id in quotes too?
| WHERE = '$id'
if that doesn't help, print the sql-statement to STDOUT (e.g. probably to the
browser) and take a look at it, that way it is easier to see where the
error is.
-fkr
--
gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0 8A48 0D31 9BD3 D9AC 74D0
|http://www.hazardous.org/ | whois -h whois.ripe.de
FKR-RIPE |
|all your base are belong to us | shame on me | fkr@IRCnet |