Re: UPDATE - MySQL having some trouble
| From: | J.F.Kishor | Date: | Thu, 24 Jan 2002 04:39:56 +0000 |
| Subject: | Re: UPDATE - MySQL having some trouble | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-81823@lists.php.net to get a copy of this message | ||
hi,
> I can't the UPDATE command in MySQL to work properly. Here is my
> query....
>
> $query = "update table set lastname=$lastname, firstname=$firstname
^^^^^
replace table with <table name>
> where username=$username";
($lastname, $firstname, $username ) should be enclosed by quotes, if
all the fields are character.
>
> Anything wrong with my syntax here?
Goodluck........!
cheers,
kishor
Nilgiri Networks.