Jump to content
MakeWebGames

Strange error in scuba.php


Vyp3r2oo9

Recommended Posts

While swimming around you find $$$cashhhQUERY 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=110' at line 1
Query was UPDATE users SET money=money+ WHERE userid=110

 

This is a bug that was reported to me by a member of my game..

I have restored scuba.php to the earliest backup I have and it still doesnt fix it - So I was thinking it maybe in MySQL tables -- Which I've never really been good at so any help would be greatly appreciated!

Link to comment
Share on other sites

Re: Strange error in scuba.php

I doubt it has anything to do with your database. The fact is you are trying to add null which you cannot do. You'll have to add a variable that contains actual data rather than a variable that appears to not exist. In addition I see you are trying to output $$$cashhh which looks wrong on several accounts. Sepending on what the variable name actually is, you might tro ${$cashhh}

You can use a slash before the $ but I can never remember if thats / \ as I do not use that currency

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...