I am using MySQL with PHP, Codeigniter. I had a question which was answered by bluefeet in the post here
I created a stored procedure for the second solution by blue
Try:
more_results() && $dbms->next_result())
{
$result = $dbms->store_result();
if(is_object($result)){ $result->free(); }
unset($result);
}
?>
After procedure call. MySQLi
can't call another procedure, while has previous results.
You should use free()
for each of them before any further procedure call or query execution.
Source: http://php.net/manual/en/mysqli.query.php