Jump to content

getting error


seany123

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.