예제 #1
0
 public function __construct(array $result, $sql, $as_object = NULL)
 {
     parent::__construct($result, $sql, $as_object);
     // Find the number of rows in the result
     $this->_total_rows = count($result);
 }
예제 #2
0
 public function __construct($result, $sql, $as_object = FALSE, array $params = NULL)
 {
     parent::__construct($result, $sql, $as_object, $params);
     // Find the number of rows in the result
     $this->_total_rows = mysqli_num_rows($result);
 }