Cronwerks MCCode/MCCodes Forums

Please login or register.

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.


This forum is now closed and has moved to a new location! Click here to find out why.

AuthorTopic: Query Error.  (Read 645 times)

xTRUTECHNIQUEx

  • Basic Member
  • *
  • Reputation Power: 13
  • xTRUTECHNIQUEx has no influence.
  • Offline Offline
  • Posts: 4
    • View Profile
    • Email
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
  • Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.
  • Offline Offline
  • Posts: 540
    • View Profile
    • WWW
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
  • ReignFire has no influence.
  • Offline Offline
  • Posts: 56
    • View Profile
Re: Query Error.
« Reply #2 on: June 25, 2010, 07:38:04 AM »
that should do it! :)
Logged

Danny696

  • Senior Member
  • ****
  • Reputation Power: 317
  • Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.
  • Offline Offline
  • Posts: 540
    • View Profile
    • WWW
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
  • mentaljason has no influence.
  • Offline Offline
  • Posts: 28
  • MentalJason HURRAH
    • View Profile
    • WWW
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
  • JoshuaDams is working their way up.JoshuaDams is working their way up.JoshuaDams is working their way up.
  • Offline Offline
  • Posts: 240
    • MSN Messenger - immortalthug4ever@hotmail.com
    • View Profile
    • WWW
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 ? :P

Danny696

  • Senior Member
  • ****
  • Reputation Power: 317
  • Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.
  • Offline Offline
  • Posts: 540
    • View Profile
    • WWW
Re: Query Error.
« Reply #6 on: October 14, 2010, 12:50:05 PM »
LMAFO
Logged
Project Choosen - 10%
Daniel - Hanson . Com
 


This forum is now closed and has moved to a new location! Click here to find out why.