mysqli_result類
(PHP 5, PHP 7, PHP 8)
簡介
代表從一個數據庫查詢中獲取的結果集。
更新日誌
| 版本 | 說明 | 
|---|---|
| 5.4.0 | Iterator support was added, as mysqli_result now implements Traversable. | 
類摘要
     
      class mysqli_result
     
     {
 
    /* 屬性 */
    
   int $current_field;
int $field_count;
int|string $num_rows;
 
    /* 方法 */
    
   }目錄
- mysqli_result::__construct — Constructs a mysqli_result object
 - mysqli_result::$current_field — Get current field offset of a result pointer
 - mysqli_result::data_seek — Adjusts the result pointer to an arbitrary row in the result
 - mysqli_result::fetch_all — Fetch all result rows as an associative array, a numeric array, or both
 - mysqli_result::fetch_array — Fetch the next row of a result set as an associative, a numeric array, or both
 - mysqli_result::fetch_assoc — Fetch the next row of a result set as an associative array
 - mysqli_result::fetch_column — Fetch a single column from the next row of a result set
 - mysqli_result::fetch_field_direct — Fetch meta-data for a single field
 - mysqli_result::fetch_field — Returns the next field in the result set
 - mysqli_result::fetch_fields — Returns an array of objects representing the fields in a result set
 - mysqli_result::fetch_object — Fetch the next row of a result set as an object
 - mysqli_result::fetch_row — Fetch the next row of a result set as an enumerated array
 - mysqli_result::$field_count — Gets the number of fields in the result set
 - mysqli_result::field_seek — Set result pointer to a specified field offset
 - mysqli_result::free — Frees the memory associated with a result
 - mysqli_result::getIterator — Retrieve an external iterator
 - mysqli_result::$lengths — Returns the lengths of the columns of the current row in the result set
 - mysqli_result::$num_rows — Gets the number of rows in the result set