I have a question about using MySQL stored procedures with one controller/view using PHP5, and the mysqli driver.
Whenever I try to do 2 Procedure calls with one controller/connection I get the following error:
Error Number: 2014
Commands out of sync; you can’t run this command now
They are called in this fashion:
$sql = “CALL usp_Procedure1(?)”;
$parms = array($id);
$qresult=$this->db->query($sql, $parms);
Anyone know how to get around this? I think this is a mySQL 5 issue that is preventing multiple Stored Procedure calls in one connection.
Thanks,
Reg
