change $rows = $DB->select("SELECT * Users WHERE Email='$Email', AND Password='$PasswordEncoded'"); to $rows = $this->DB->select("SELECT * Users WHERE Email='$Email', AND Password='$PasswordEncoded'"); you have to always reference the current instance w/ the $this keyword in php ;) -nathan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php