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
In file
system/database/drivers/mysqli/mysqli_result.php
Add:
function next_result()
{
if (is_object($this->conn_id))
{
return mysqli_next_result($this->conn_id);
}
}
function result($type = 'object')
{
$result = array();
if ($type == 'array') $result = $this->result_array();
else if ($type == 'object') $result = $this->result_object();
else $result = $this->custom_result_object($type);
$this->next_result();
return $result;
}