Jump to content
MakeWebGames

Crime Problems


spiky

Recommended Posts

kk well im setting up a game temperarilly on a free host tell i like it thn move to real host and domain but i got some problems

Using V2

2 problems:

Problem 1.

If i add a crime group above th crime centre where it lists all the crimes i get.

Warning: Invalid argument supplied for foreach() in /home/criminal/public_html/criminal.php on line 16

if i go to that line in the code it says this (hope this helps)

foreach($crimes as $v)

 

Problem 2:

When i then try to add a crime to the crime group i get the following 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 ' '', 10)' at line 1

need any other info ask im new to this

Maybe someone can paste there criminal.php code here and i can see what the difference is with mine cause when i copyed someone else item market code it sorted that problem maybe itle work the same with this

Link to comment
Share on other sites

  • 4 weeks later...

Re: Crime Problems

Posting Mc Code 2.0 code on here in detail is prohibited.

I think you get that error because although you have a crime group, you have no crimes to go under it. Make a crime for that group and try again

What does it say after.....

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 ' '', 10)' at line 1

It usually displays the query.

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