#CodeIgniter: fix num_rows counter when call stored by query
function num_rows()
{
if(is_a($this->result_id, "mysqli_result")){
return @mysqli_num_rows($this->result_id);
} else{
return 0;
}
}
#File location: system\database\drivers\mysqli\mysql_result.php
Comments