3.11 The mysqli_result class

3.11.1 mysqli_result::$current_field, mysqli_field_tell
3.11.2 mysqli_result::data_seek, mysqli_data_seek
3.11.3 mysqli_result::fetch_all, mysqli_fetch_all
3.11.4 mysqli_result::fetch_array, mysqli_fetch_array
3.11.5 mysqli_result::fetch_assoc, mysqli_fetch_assoc
3.11.6 mysqli_result::fetch_field_direct, mysqli_fetch_field_direct
3.11.7 mysqli_result::fetch_field, mysqli_fetch_field
3.11.8 mysqli_result::fetch_fields, mysqli_fetch_fields
3.11.9 mysqli_result::fetch_object, mysqli_fetch_object
3.11.10 mysqli_result::fetch_row, mysqli_fetch_row
3.11.11 mysqli_result::$field_count, mysqli_num_fields
3.11.12 mysqli_result::field_seek, mysqli_field_seek
3.11.13 mysqli_result::free, mysqli_free_result
3.11.14 mysqli_result::$lengths, mysqli_fetch_lengths
3.11.15 mysqli_result::$num_rows, mysqli_num_rows

Copyright 1997-2014 the PHP Documentation Group.

Represents the result set obtained from a query against the database.

Changelog

Table 3.16 Changelog

VersionDescription
5.4.0Iterator support was added, as mysqli_result now implements Traversable.

 mysqli_result {
mysqli_result , Traversable Properties  int mysqli_result->current_field ;
  int mysqli_result->field_count ;
  array mysqli_result->lengths ;
  int mysqli_result->num_rows ;
Methods  bool mysqli_result::data_seek(int offset);
  mixed mysqli_result::fetch_all(int resulttype= =MYSQLI_NUM);
  mixed mysqli_result::fetch_array(int resulttype= =MYSQLI_BOTH);
  array mysqli_result::fetch_assoc();
  object mysqli_result::fetch_field_direct(int fieldnr);
  object mysqli_result::fetch_field();
  array mysqli_result::fetch_fields();
  object mysqli_result::fetch_object(string class_name= ="stdClass",
                                     array params);

  mixed mysqli_result::fetch_row();
  bool mysqli_result::field_seek(int fieldnr);
  void mysqli_result::free();
}