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? Link to comment https://forums.phpfreaks.com/topic/168969-getting-error/ 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 Link to comment https://forums.phpfreaks.com/topic/168969-getting-error/#findComment-891492 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. Link to comment https://forums.phpfreaks.com/topic/168969-getting-error/#findComment-891493 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.