Mysqli
PHP Manual

MySQLi类

(PHP 5, PHP 7)

简介

代表PHP和Mysql数据库之间的一个连接。

类摘要

mysqli {
/* 属性 */
int $errno;
string $error;
string $client_info;
string $host_info;
string $server_info;
string $info;
string $sqlstate;
/* 方法 */
int mysqli_affected_rows ( mysqli $link )
bool autocommit ( bool $mode )
public bool begin_transaction ([ int $flags [, string $name ]] )
bool change_user ( string $user , string $password , string $database )
string character_set_name ( void )
bool close ( void )
bool commit ( void )
int mysqli_connect_errno ( void )
string mysqli_connect_error ( void )
void connect ([ string $host = ini_get("mysqli.default_host") [, string $username = ini_get("mysqli.default_user") [, string $passwd = ini_get("mysqli.default_pw") [, string $dbname = "" [, int $port = ini_get("mysqli.default_port") [, string $socket = ini_get("mysqli.default_socket") ]]]]]] )
bool debug ( string $message )
bool dump_debug_info ( void )
int mysqli_errno ( mysqli $link )
array mysqli_error_list ( mysqli $link )
string mysqli_error ( mysqli $link )
int mysqli_field_count ( mysqli $link )
object get_charset ( void )
string get_client_info ( void )
int mysqli_get_client_version ( mysqli $link )
bool get_connection_stats ( void )
string mysqli_get_host_info ( mysqli $link )
int mysqli_get_proto_info ( mysqli $link )
string mysqli_get_server_info ( mysqli $link )
int mysqli_get_server_version ( mysqli $link )
mysqli_warning get_warnings ( void )
string mysqli_info ( mysqli $link )
mysqli init ( void )
mixed mysqli_insert_id ( mysqli $link )
bool kill ( int $processid )
bool more_results ( void )
bool multi_query ( string $query )
bool next_result ( void )
bool options ( int $option , mixed $value )
bool ping ( void )
public static int poll ( array &$read , array &$error , array &$reject , int $sec [, int $usec ] )
mysqli_stmt prepare ( string $query )
mixed query ( string $query [, int $resultmode = MYSQLI_STORE_RESULT ] )
bool real_connect ([ string $host [, string $username [, string $passwd [, string $dbname [, int $port [, string $socket [, int $flags ]]]]]]] )
string escape_string ( string $escapestr )
bool real_query ( string $query )
public mysqli_result reap_async_query ( void )
public bool refresh ( int $options )
public bool release_savepoint ( string $name )
bool rollback ( void )
int rpl_query_type ( string $query )
public bool savepoint ( string $name )
bool select_db ( string $dbname )
bool send_query ( string $query )
bool set_charset ( string $charset )
void mysqli_set_local_infile_default ( mysqli $link )
bool set_local_infile_handler ( mysqli $link , callable $read_func )
string mysqli_sqlstate ( mysqli $link )
bool ssl_set ( string $key , string $cert , string $ca , string $capath , string $cipher )
string stat ( void )
mysqli_stmt stmt_init ( void )
mysqli_result store_result ([ int $option ] )
int mysqli_thread_id ( mysqli $link )
bool mysqli_thread_safe ( void )
mysqli_result use_result ( void )
int mysqli_warning_count ( mysqli $link )
}

Table of Contents


Mysqli
PHP Manual