MyBB Community Forums
MyBB Community Forums
>
1.8 Support
>
General Support
> Why new .php file doesn't have $db object?
Full Version:
Why new .php file doesn't have $db object?
You're currently viewing a stripped down version of our content.
View the full version
with proper formatting.
Myusername69
2020-09-30, 06:04 PM
I made a new .php file
And I try to do $db->
But it say $db is null?
Omar G.
2020-09-30, 07:47 PM
function () { global $db; var_dump($db); }
MyBB Community Forums
>
1.8 Support
>
General Support
> Why new .php file doesn't have $db object?