Page 1 of 1

PHP Fatal error: Call to a member function on a non-object

Posted: Wed Mar 26, 2003 3:50 am
by jarow
Any idea why I would be getting the above error message on the following line:

$name_check = $db_object->query("SELECT username FROM users2 WHERE username = '".$_POST['uname']."'");

thanks

Posted: Wed Mar 26, 2003 3:56 am
by twigletmac
Have you declared $db_object as an object?

Mac