Can someone tell me why I am getting this error? Call to undefined method PDO::bindParam()
Here is what I have, taken right off of PHPs site for stored procedures
$stmt = db::getInstance();
$stmt->prepare("CALL delete(?)");
$stmt->bindParam(2122, $return_value, PDO::PARAM_STR, 4000);
$stmt->execute();
print "procedure returned $return_valuen";
The
bindParam()
method is inside thePDOStatement
class, not the PDO class. The statement is the result of theprepare()
method.