Codes here !

Moderators: egami, macek, gesf

Post Reply
New php-forum User
New php-forum User
Posts: 45
Joined: Wed Mar 12, 2003 7:17 pm

Sun Jun 15, 2003 5:43 pm

I can't quite figure out what the syntax problem here is:

Code: Select all

UPDATE user SET info='Yo Dawg...sup?', SET email='' WHERE username='bonkers'<br>
You have an error in your SQL syntax.  Check the manual that corresponds to your MySQL server version for the right syntax to use near 'SET email='' WHERE username='bonkers'' at line 1

Thats the output of my code. The top part is the query and the bottom part is the error :(... I'm really stuck on this one. Thanks in advanced for the help.

php-forum Active User
php-forum Active User
Posts: 264
Joined: Tue Apr 08, 2003 5:18 am
Location: Ottawa, Canada

Sun Jun 15, 2003 6:42 pm

try this:

UPDATE user SET info="Yo Dawg...sup?", email="" WHERE username="bonkers";

User avatar
Posts: 1240
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol

Sun Jun 15, 2003 11:21 pm

or this:

Code: Select all

UPDATE `database`.`user` SET info="Yo Dawg...sup?", SET email="" WHERE username="bonkers";
"Sex,Drugs and Rock&Roll " replaced at "Sucks,Bugs and Plug&Play";

Post Reply