Mysqli
PHP 手册

mysqli_result类

(PHP 5)

简介

代表从一个数据库查询中获取的结果集。

更新日志

更新日志
版本 说明
5.4.0 Iterator support was added, as mysqli_result now implements Traversable.

类摘要

mysqli_result {
/* 属性 */
array $lengths;
/* 方法 */
int mysqli_field_tell ( mysqli_result $result )
bool data_seek ( int $offset )
mixed fetch_all ([ int $resulttype = MYSQLI_NUM ] )
mixed fetch_array ([ int $resulttype = MYSQLI_BOTH ] )
array fetch_assoc ( void )
object fetch_field_direct ( int $fieldnr )
object fetch_field ( void )
array fetch_fields ( void )
object fetch_object ([ string $class_name [, array $params ]] )
mixed fetch_row ( void )
int mysqli_num_fields ( mysqli_result $result )
bool field_seek ( int $fieldnr )
void free ( void )
array mysqli_fetch_lengths ( mysqli_result $result )
int mysqli_num_rows ( mysqli_result $result )
}

Table of Contents


Mysqli
PHP 手册