Jump to content
MakeWebGames

daddytednips

Members
  • Posts

    6
  • Joined

  • Last visited

    Never

daddytednips's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Re: criminal.php Thanks for contributing guys but i solved it in the end :)
  2. Re: criminal.php yus, i have made one crime
  3. Re: criminal.php ok, thanks
  4. Re: criminal.php rofl, ok xD   while ($r2=$db->fetch_row($q2)) { $crimes[]=$r2; } $q=$db->query("SELECT * FROM crimegroups ORDER by cgORDER ASC"); print "[b]Criminal Centre[/b] <table width='75%' cellspacing=1 class='table'><tr><th>Crime</th><th>Cost</th><th>Do</th></tr>"; while($r=$db->fetch_row($q)) { print "<tr><td colspan='3' class='h'>{$r['cgNAME']}</td></tr>"; foreach($crimes as $v) { if($v['crimeGROUP'] == $r['cgID']) { print "<tr><td>{$v['crimeNAME']}</td><td>{$v['crimeBRAVE']} Brave</td><td>[url='docrime.php?c={$v[']Do[/url]</td></tr>"; } } } print "</table>"; $h->endpage(); ?>   [me=daddytednips]crosses fingers lol[/me]
  5. Re: criminal.php lol, thanks, i'm only just starting php. before: } $q=$db->query("SELECT * FROM crimegroups ORDER by cgORDER ASC"); print "[b]Criminal Centre[/b] <table width='75%' cellspacing=1 class='table'><tr><th>Crime</th><th>Cost</th><th>Do</th></tr>"; while($r=$db->fetch_row($q)) { print "<tr><td colspan='3' class='h'>{$r['cgNAME']}</td></tr>";   and after: { if($v['crimeGROUP'] == $r['cgID']) { print "<tr><td>{$v['crimeNAME']}</td><td>{$v['crimeBRAVE']} Brave</td><td>[url='docrime.php?c={$v[']Do[/url]</td></tr>"; } } } print "</table>";   do you need the actual line of code that's wrong?
  6. I have not done anything to the file but i get the error: Warning: Invalid argument supplied for foreach() in /home/jimbobra/public_html/criminal.php on line 16   I am not sure how to fix this so i thought i'd see if you guys could help in any way, thanks in advance.
×
×
  • Create New...