You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When calling multiple stored procedures, you can run into the following error: "Commands out of sync; you can't run this command now". I added the following to my class.db.php and then call it after calling the procedure query.
public function next_result()
{
$this->link->next_result();
}
When calling multiple stored procedures, you can run into the following error: "Commands out of sync; you can't run this command now". I added the following to my class.db.php and then call it after calling the procedure query.
public function next_result()
{
$this->link->next_result();
}
So now I run this without the error.
$db->get_row( "CALL calcMedian('table_name','col_name')" );
$db->next_result();
$db->get_row( "CALL calcMedian('table_name','col_name')" );
$db->next_result();
The text was updated successfully, but these errors were encountered: