Code: Select all
DBError: You do not seem to have database permission.Code: Select all
Fatal error: Uncaught DBError: You do not seem to have database permission. thrown in D:\localhost\htdocs\classes\Connection.class.html on line 45DBError class
Code: Select all
class DBError extends Exception
{
function __construct($message)
{
parent::__construct($message, 0);
}
public function __toString()
{
return __CLASS__ . ': ' . $this->message;
}
}Code: Select all
$this -> connection = @mysql_connect ('localhost', 'user', 'password', true);
if(!$this -> connection)
{
throw new DBError('You do not seem to have database permission.');
}Thanks,
someberry.