PDO::FETCH_OBJ -> Returns an anonymous object with property names that correspond to the column names returned in your result set. For example:
Array ( [0] => stdClass Object ( [id] => 3 [email] => frank@frank.com [password] => password [salt] => salt [devices] => 1 [accounttype] => 1 [accountcreated] => 2014-03-26 [confirmed] => 1 [confirmcode] => 0 [logindate] => 2014-03-26 ) )
How do I get the email value??????? Below is what i have so far
$_db = DB::getInstance();
$_db = $_db->query('SELECT * FROM users WHERE email = ? AND password = ? ', array($email, $pass));
$results = $_db->results();
print_r($results);
print_r($results->email); <<<<<<<<<<<--- does not work!
PLEASE HELP been at this for 24hours.... I know its simple because I have done it before... just cant seem to remember of find any referencing code!