Jump to content

MySql Fetch Array


zackcez

Recommended Posts

Well, here's my code from line 43+:

$getRankQuery = $db->query_read("SELECT * FROM user ORDER BY $end DESC");
while ($rankData = $db->fetch_array($getRankQuery))
{
	$endRank[$rankData['username']] = $rank++;
}
$db->free_result($getRankQuery);
unset($rankData);

And the error:

Fatal error: Call to a member function on a non-object in C:\Inetpub\vhosts\MYSITE\httpdocs\modules\test.php on line 43

Link to comment
https://forums.phpfreaks.com/topic/116116-mysql-fetch-array/
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.