![]() |
$db->query_read inside a function?
I have a funtions include file with $db->query_read in the functions but when the page is called I get
Fatal error: Call to a member function query_read() on a non-object in /home/madden/public_html/forum/league_functions/functions_inc.php on line 191 Code:
|
add
PHP Code:
|
Thank you!
|
Or you could just use $vbulletin->db->
|
Is one way better than the other?
|
They reference to the same thing, it's just that $vbulletin-> doesn't require you to globalize $db, thus saving you a line of code :).
|
Ah.. makes sense, thanks.
|
All times are GMT. The time now is 03:07 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|