quocvuongdn

#CodeIgniter: fix num_rows counter when call stored by query

Nov 16th, 2014
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.21 KB | None | 0 0
  1. function num_rows()
  2.     {  
  3.         if(is_a($this->result_id, "mysqli_result")){
  4.             return @mysqli_num_rows($this->result_id);
  5.         } else{
  6.             return 0;
  7.         }
  8.     }
  9.  
  10. #File location: system\database\drivers\mysqli\mysql_result.php
Advertisement
Add Comment
Please, Sign In to add comment