Posted by The Eclectic Electric on 12/12/06 15:00
"ulyx" <new_one@hotmail.com> wrote in message
news:elmfjh$4tr$1@ss408.t-com.hr...
> How to update multiple values ?
> e.g.
> UPDATE user SET name='$name' WHERE id='$id' "
>
> This will update just one field.
> How can i update multiple fields ( lastname, city ) on this way ?
>
>
UPDATE user SET name='value', lastname='value', city='value WHERE id='value
http://dev.mysql.com/doc/
+e
[Back to original message]
|