MVC-Pro/application/models/user.php
/**
	 * Description:
	 * This is used to verify the user signing in's hashed password once signed in matches the hashed password in the database.
	 *
	 * @param  $email
	 * @param  $password
	 * @return
	 */
This is used to verify the user signing in's hashed password once signed in matches the hashed password in the database.

@param  $email
@param  $password
@return
This is used to verify the user signing in ' s hashed password once signed in matches the hashed password in the database . @param $email @param $password @return
public function checkUser($email, $password)
    {
        $sql = "SELECT uID, email, password
        		FROM users
                WHERE email = ? AND active = 1
                LIMIT 1";
        $results = $this->db->getrow($sql, array($email));
        return crypt($password, $results['password']) == $results['password'] ? $results['uID'] : FALSE;
    }
public function checkUser ( $ email , $ password ) { $ sql = " SELECT uID, email, password
        		FROM users
                WHERE email = ? AND active = 1
                LIMIT 1 " ; $ results = $ this -> db -> getrow ( $ sql , array ( $ email ) ) ; return crypt ( $ password , $ results [ 'password' ] ) == $ results [ 'password' ] ? $ results [ 'uID' ] : FALSE ; }
Description:
 This is used to verify the user signing in's hashed password once signed in matches the hashed password in the database.
Description : This is used to verify the user signing in ' s hashed password once signed in matches the hashed password in the database .
// perform query // VIM SAYS SOMETHING WRONG WITH LINE BELOW DEBUG // d($results); // d($password); // d($email); // if it matches the passwords match, this will return TRUE otherwise it will return FALSE