Jump to content
MakeWebGames

Recommended Posts

Posted

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 'ORDER BY rand()' at line 1

Query was SELECT i.armor FROM items i WHERE itmid= ORDER BY rand()

That i got i replaced the attack.php with ravens script attack.php since i cant find the attack.php of mccodes because my assistant/helper deleted the mcodes and added a new attack.php which doesent work and now he is off line for a week because of school.

How can i fix this problem?

Posted

I don't know why you have SELECT i.armor FROM items i.. when you can just do SELECT armor FROM items

But if you want to keep it that way, make this change: WHERE i.itmid=.........

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...