Hello i am trying to connect my mobile service with my database...
this is the script
public $username = "root";
public $password = "";
public $server = "localhost";
public $databasename = "rove";
public $port = "80";
public $connection;
public function __construct ()
{
$this->connection = mysqli_connect($this->server, $this->username,
$this->password, $this->databasename);
$this->throwExceptionOnError($this->connection);
}
and i am getting this error
Fatal error: Call to undefined method User::throwExceptionOnError() in C:\Program Files (x86)\Zend\Apache2\htdocs\PHPRovespier\services\User.php on line 19
Can anyone explain to me what is this and how to fix it?