Cronwerks MCCode/MCCodes Forums
February 09, 2012, 10:18:57 AM
Welcome,
Guest
Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Have you purchased a mod and lost your copy? Just file a support ticket through your "My Mods" page.
Home
Popular Mods
Contests
Paid Support
Login
Register
This forum is now closed and has moved to a new location! Click here to find out why.
Cronwerks MCCode/MCCodes Forums
>
MCCode/MCCodes Development Forum
>
Error/Bug Help
>
Query Error.
Reputation
Add to Reputation:
What do you think of this post?
I agree
I disagree
Comment:
« previous
next »
Pages: [
1
]
Print
Author
Topic: Query Error. (Read 645 times)
xTRUTECHNIQUEx
Basic Member
Reputation Power: 13
Offline
Posts: 4
Query Error.
«
on:
March 29, 2010, 09:10:07 AM »
This error just kind of showed up so to speak. At 1st i never got this but now everytime I leave a player I get this error.
QUERY ERROR: 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 'WHERE userid=1' at line 1
Query was UPDATE users SET exp=exp+0, WHERE userid=1
Logged
Danny696
Senior Member
Reputation Power: 317
Offline
Posts: 540
Re: Query Error.
«
Reply #1 on:
March 29, 2010, 11:54:19 AM »
remove the , before WHERE
Logged
Project Choosen - 10%
Daniel - Hanson . Com
ReignFire
Basic Member
Reputation Power: 36
Offline
Posts: 56
Re: Query Error.
«
Reply #2 on:
June 25, 2010, 07:38:04 AM »
that should do it!
Logged
Danny696
Senior Member
Reputation Power: 317
Offline
Posts: 540
Re: Query Error.
«
Reply #3 on:
June 25, 2010, 09:54:45 AM »
The point of posting that was.....
Logged
Project Choosen - 10%
Daniel - Hanson . Com
mentaljason
Basic Member
Reputation Power: 13
Offline
Posts: 28
MentalJason HURRAH
Re: Query Error.
«
Reply #4 on:
September 16, 2010, 05:06:19 AM »
It needs the wehere =1 other wise no one will ever get exp, maybe it's "," before the where?
Logged
Like Mccodes? Like things to be
free
? try
My mods forum
where all of the mods are free!
JoshuaDams
Active Member
Reputation Power: 129
Offline
Posts: 240
Re: Query Error.
«
Reply #5 on:
October 11, 2010, 07:05:19 PM »
Query was UPDATE users SET exp=exp+0, WHERE userid=1
$db->query("UPDATE users SET exp=exp+0 WHERE userid=1");
Wth is that even for? lol
That's like saying..
run a HUGE query and Set EVERYONES EXP to what their XP already is.
See the humor in this ?
Logged
Purified Gaming.com
Danny696
Senior Member
Reputation Power: 317
Offline
Posts: 540
Re: Query Error.
«
Reply #6 on:
October 14, 2010, 12:50:05 PM »
LMAFO
Logged
Project Choosen - 10%
Daniel - Hanson . Com
Pages: [
1
]
Print
« previous
next »
This forum is now closed and has moved to a new location! Click here to find out why.