Jump to content

Having a problem with a function


JSHINER

Recommended Posts

My code:

	function _authenticate($db, $email, $password) {
	return $db->getRow('SELECT * FROM user WHERE email = \'' . $db->escape($email) . '\' AND password = \'' . $db->escape($password) . '\'');
}

 

But when I try to login I get the error:

"Fatal error: Call to a member function getRow() on a non-object in /File.php on line 23"

 

 

Any ideas why?

Link to comment
https://forums.phpfreaks.com/topic/83380-having-a-problem-with-a-function/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.