Jag följer mr. Tim Brownlaws blogg:
https://ellislab.com/forums/viewthread/73714/#562711
Ändra först application/config/config.php, rad 55.
$db['default']['dbdriver'] = 'mysqli'; // ANVÄND mysqli Lägg sedan till följande i mysqli_result.php som av någon underlig anledning saknar detta kommando (under /system/database/drivers/mysqli/mysqli_result.php).
/** * Läs nästa resultat * * @return null */ function next_result() { if (is_object($this->conn_id)) { return mysqli_next_result($this->conn_id); } } Lägg sedan, i din modell, till $result->next_result().
Nedan är mitt exempel.
function list_sample($str_where, $str_order, $str_limit) { $qry_res = $this->db->query("CALL rt_sample_list('{$str_where}', '{$str_order}', '{$str_limit}');"); $res = $qry_res->result(); $qry_res->next_result(); // Dumpa den extra resultatmängden. $qry_res->free_result(); // Gör vad det säger. return $res; }