Jaxel
02-13-2009, 05:13 PM
Fatal error: Cannot access empty property in ...
What does this error mean? I have the following code in one of my functions...
global $vbulletin;
$query = ("SELECT * FROM rank_players
ORDER BY $sort $order, pName ASC");
$result = $vbulletin->$db->query_read($query);
while ($player = $vbulletin->$db->fetch_array($result)) {...}
The table rank_players IS empty, but it should instead simply fail the while loop on line 7; but it never makes it that far and instead dies right on line 5.
Also, what is the difference between $vbulletin->$db-> and $db-> ? Is there a reason to use one over the other?
What does this error mean? I have the following code in one of my functions...
global $vbulletin;
$query = ("SELECT * FROM rank_players
ORDER BY $sort $order, pName ASC");
$result = $vbulletin->$db->query_read($query);
while ($player = $vbulletin->$db->fetch_array($result)) {...}
The table rank_players IS empty, but it should instead simply fail the while loop on line 7; but it never makes it that far and instead dies right on line 5.
Also, what is the difference between $vbulletin->$db-> and $db-> ? Is there a reason to use one over the other?