In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says...
> I can't get UPDATE to work properly when querying MySQL.
> 
> $query = "UPDATE $table SET field1='$var1' WHERE id='$id'";
> 
> I want to update one field of one row in a table.  Is this syntax
> correct?
> 
if id is an int type, no. You only need to quote values being passed to 
[var]char or text type fields.

-- 
David Robley
Temporary Kiwi!

Quod subigo farinam

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to