Hello all,
I am extending mysqli and running into a small problem. mysqli_error requires a mysqli object. By extending mysqli I cannot pass that object to that function. Is it possible to extract a parent class? Another was to accomplish this?
myDb extends mysqli
{
function __constructor(<login details>)
{
parent::_constructor(<login details>)
}
}
$db = new myDb();
$db->query("<sql code>")
mysqli_error($db);
Error, needs mysqli
Also, my version of php does not support mysql->error or mysql->connect_error (5.1+) so I got to pass the mysqli object.
Thanks