Пример #1
0
 public function __construct($sql, $connection_handle, $result_set_handle)
 {
     if (is_resource($result_set_handle)) {
         parent::__construct($sql, $connection_handle, $result_set_handle);
         $this->n_rows = mysql_num_rows($result_set_handle);
         $this->n_rows_affected = mysql_affected_rows($connection_handle);
     }
 }
Пример #2
0
 public function __construct($sql, $connection_handle, $result_set_handle)
 {
     parent::__construct($sql, $connection_handle, $result_set_handle);
     $this->n_rows = sqlite_num_rows($result_set_handle);
     $this->n_rows_affected = sqlite_changes($connection_handle);
 }
Пример #3
0
 public function __construct($sql, $connection_handle, $result_set_handle)
 {
     if ($result_set_handle instanceof MySQLi_Result) {
         parent::__construct($sql, $connection_handle, $result_set_handle);
         $this->n_rows = $result_set_handle->num_rows;
         $this->n_rows_affected = $connection_handle->affected_rows;
     }
 }