Nutta Posted July 10, 2011 Share Posted July 10, 2011 (edited) Its working now thanks for the help Edited July 11, 2011 by Nutta Quote Link to comment Share on other sites More sharing options...
Sethenor2 Posted July 10, 2011 Share Posted July 10, 2011 What version of mccodes are you using? Quote Link to comment Share on other sites More sharing options...
US Vice Posted July 10, 2011 Share Posted July 10, 2011 Here's an insane idea... maybe look at foreach on line 16? http://php.net/manual/en/control-structures.foreach.php Quote Link to comment Share on other sites More sharing options...
Danny696 Posted July 10, 2011 Share Posted July 10, 2011 (edited) What version of mccodes are you using? There was no need to even ask that Here's an insane idea... maybe look at foreach on line 16? http://php.net/manual/en/control-structures.foreach.php Heres an insane idea, go learn php yourself -.- You have no crimes and/or crimegroups, simple right? Edited July 11, 2011 by Danny696 Quote Link to comment Share on other sites More sharing options...
bluegman991 Posted July 11, 2011 Share Posted July 11, 2011 i can tell you whats happening but wont be able to help you fix it unless i see the file either the variable given to foreach is not an array or the syntax is wrong correct format for foreach foreach($variable as $k => $v) { } or foreach($variable as $v) { } $variable must be an array $k and $v can be any variable preferably an empty one since it will be over written when the foreach statement executes just know the index/key will be put assign to whatever variable that is in the $k spot and the value will be assigned to the variable in the $v spot Quote Link to comment Share on other sites More sharing options...
Nutta Posted July 11, 2011 Author Share Posted July 11, 2011 I deleted the new copy of crimes and uploaded the original i got with McCodes v2, could it be to do with my SQL? Quote Link to comment Share on other sites More sharing options...
Danny696 Posted July 11, 2011 Share Posted July 11, 2011 i can tell you whats happening but wont be able to help you fix it unless i see the file either the variable given to foreach is not an array or the syntax is wrong correct format for foreach foreach($variable as $k => $v) { } or foreach($variable as $v) { } $variable must be an array $k and $v can be any variable preferably an empty one since it will be over written when the foreach statement executes just know the index/key will be put assign to whatever variable that is in the $k spot and the value will be assigned to the variable in the $v spot All wrong, its a very simple fix, he doesnt have crimes, its nothing to do with the code. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.