Ok I have this line of text in my php functions admin file that keeps getting booted when executed. with the error
Fatal error: Call to a member function on a non-object in {file} on line 8
Line 8:
PHP Code:
$mainsqry = $vbulletin->db->query_read("SELECT favid, name, displayid FROM " . TABLE_PREFIX . "favavorites_main ORDER BY displayid");
Whats the problem? I've switched from $vbulletin->db to $db, that wasn't it, there query layout is the same as other parts of the file that works fine. I don't get what the problem is at all.