seany123 Posted August 5, 2009 Share Posted August 5, 2009 <?php //Select all members ordered by level (highest first, members table also doubles as rankings table) $APPquery = $db->execute("select * from `gang_app` where `gang_id`=?", array($player->gang_id)); $app = $APPquery->fetchrow(); $playquery = $db->execute("select * from `players` where `player_id`=?", array($app['player_id'])); while($playapp = $playquery->fetchrow()) { echo "<tr>\n"; echo "<td>"; echo "".$playapp['username'].""; echo "".$playapp['level'].""; echo ""; echo "</tr>\n"; } ?> and im getting this error. Fatal error: Call to a member function fetchrow() on a non-object does anyone know how to fix this? Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted August 5, 2009 Share Posted August 5, 2009 Maybe its fetch_row() What database class are you using Quote Link to comment Share on other sites More sharing options...
alexdemers Posted August 5, 2009 Share Posted August 5, 2009 Well, it seems to be referring to a class that we don't have the code. Check your original class to see if the method "fetchrow" exists. The error couldn't be simpler. 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.