Overriding mysqli_stmt::bind_result
Posted: Tue Aug 25, 2009 6:37 pm
I'm trying to create a new subclass of mysqli_stmt (for the purposes of doing some standardized error checking), and am trying to override the bind_result method.
I've been having difficulty with how to declare this override method:
What should I replace [a] and with to make this work?
I've been having difficulty with how to declare this override method:
Code: Select all
<?php
class MyErrorCheckingSqliStmt extends mysqli_stmt
{
public function bind_result([a])
{
//My standardized error checking omitted
$bool = parent::bind_result([b]);
return $bool;
}
}
?>