object-oriented/login-system/class/auth/Authentication.php
# Returns true if the user exists in the database, false otherwise.
Returns true if the user exists in the database, false otherwise.
Returns true if the user exists in the database false otherwise .
private function checkLoginInDatabase($email, $password)
    {
        $c1 = $this->db->getUserDAO()->getColumnByName("email");
        $c2 = $this->db->getUserDAO()->getColumnByName("password");
        $c1->setValue($email);
        $c2->setValue(md5($password));
        $where = array($c1, $c2);
        return $this->db->getUserDAO()->select($where);
    }
private function checkLoginInDatabase ( $ email , $ password ) { $ c1 = $ this -> db -> getUserDAO ( ) -> getColumnByName ( " email " ) ; $ c2 = $ this -> db -> getUserDAO ( ) -> getColumnByName ( " password " ) ; $ c1 -> setValue ( $ email ) ; $ c2 -> setValue ( md5 ( $ password ) ) ; $ where = array ( $ c1 , $ c2 ) ; return $ this -> db -> getUserDAO ( ) -> select ( $ where ) ; }
Returns true if the user exists in the database, false otherwise.
Returns true if the user exists in the database false otherwise .
#return $this->db->getUserDAO()->select("*", array("email", "password"), array("{$email}", "MD5(" . QT . $password . QT . ")"));