PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
i get an error on like 386, which is the $db->Close();, i get that fatal error for everyting the database connection is closed, below the $db-Close(); is my function which closes the database (it's in a class). anyone know why i keep getting the fatal error? any help is appreciated, thanks
'Fatal error: Call to a member function on a non-object'
that doesn't seem to work, but thanks for the help thoug.h i still can't get it ><. the headerflie has a class, which has 2 functions: Close() and Connect(), Connect() is called and works fine, but Close() is giving the error
IXxAlnxXI wrote:db: bool(true)
Fatal error: Call to a member function on a non-object in /home/.frumisera/danial/rtndev.roadtripnation.com/watch.php on line 386
$db is not an object but a boolean, like $db = true;
Case 1 : You are trying to close the connection after the class has been destructed.
Case 2: The MySQL connection has been closed by some other functions or classes.
EDIT
------------------------------- Yes I've made this post without CAPS everywhere.