Cronwerks MCCode/MCCodes Forums

Please login or register.

Login with username, password and session length

News:

Can't find exactly what you've been wanting? Try searching for what you are looking for in the search box to the right. ----------->


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

AuthorTopic: Got an error on a conversion  (Read 542 times)

halfbaked

  • Basic Member
  • *
  • Reputation Power: 39
  • halfbaked has no influence.
  • Offline Offline
  • Posts: 16
    • View Profile
Got an error on a conversion
« on: December 30, 2010, 03:35:59 PM »
tried converting a V1 mod to a V2 mod got this error QUERY ERROR:
Query was UPDATE users SET hosptime=211,hospreason='Blown up' WHERE gang=6
i've converted a couple others but didn't get an error like this i'm stuck can anyone help?
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: Got an error on a conversion
« Reply #1 on: December 30, 2010, 03:57:05 PM »
add a space after the comma
Logged
Project Choosen - 10%
Daniel - Hanson . Com

halfbaked

  • Basic Member
  • *
  • Reputation Power: 39
  • halfbaked has no influence.
  • Offline Offline
  • Posts: 16
    • View Profile
Re: Got an error on a conversion
« Reply #2 on: December 30, 2010, 04:13:22 PM »
tried that it didn't work  here is the line of code
$db->query("UPDATE users SET hosptime=$hosptime, hospreason='Blown up by a Bomb' WHERE gang={$other['gang']}",$c);
« Last Edit: December 30, 2010, 04:31:57 PM by halfbaked »
Logged
 


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