Codes here !

Moderators: macek, egami, gesf

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


Postby bonkers » 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: 266
Joined: Tue Apr 08, 2003 5:18 am
Location: Ottawa, Canada

Postby liquedus » Sun Jun 15, 2003 6:42 pm

try this:

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

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

Re: Syntax

Postby WiZARD » 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";

Return to “mySQL & php coding”

Who is online

Users browsing this forum: No registered users and 2 guests