1-
Code: Select all
class MyDB extends mysqli
{
..
.....
public function __construct()
{
.....
[b]@mysqli_real_connect[/b](
$this->_host,
$this->_username,
$this->_password,
$this->_dbname
);
}
}
Code: Select all
class MyDB extends mysqli
{
public function __construct()
{
[b]parent[/b]::real_connect(
$this->_host,
$this->_username,
$this->_password,
$this->_dbname
);
}
}
Thanks