php教程

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;
/* 方法 */
mysqli_affected_rows ( mysqli $link ) : int
autocommit ( bool $mode ) : bool
public begin_transaction ([ int $flags = 0 [, string $name ]] ) : bool
change_user ( string $user , string $password , string $database ) : bool
character_set_name ( void ) : string
close ( void ) : bool
commit ( void ) : bool
mysqli_connect_errno ( void ) : int
mysqli_connect_error ( void ) : string
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") ]]]]]] ) : void
debug ( string $message ) : bool
dump_debug_info ( void ) : bool
mysqli_errno ( mysqli $link ) : int
mysqli_error_list ( mysqli $link ) : array
mysqli_error ( mysqli $link ) : string
mysqli_field_count ( mysqli $link ) : int
get_charset ( void ) : object
get_client_info ( void ) : string
mysqli_get_client_version ( mysqli $link ) : int
get_connection_stats ( void ) : bool
mysqli_get_host_info ( mysqli $link ) : string
mysqli_get_proto_info ( mysqli $link ) : int
mysqli_get_server_info ( mysqli $link ) : string
mysqli_get_server_version ( mysqli $link ) : int
mysqli_info ( mysqli $link ) : string
init ( void ) : mysqli
mysqli_insert_id ( mysqli $link ) : mixed
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 ) : bool
public static poll ( array &$read , array &$error , array &$reject , int $sec [, int $usec = 0 ] ) : int
prepare ( string $query ) : mysqli_stmt
query ( string $query [, int $resultmode = MYSQLI_STORE_RESULT ] ) : mixed
real_connect ([ string $host [, string $username [, string $passwd [, string $dbname [, int $port [, string $socket [, int $flags ]]]]]]] ) : bool
escape_string ( string $escapestr ) : string
real_query ( string $query ) : bool
public reap_async_query ( void ) : mysqli_result
public refresh ( int $options ) : bool
public release_savepoint ( string $name ) : bool
rollback ( void ) : bool
rpl_query_type ( string $query ) : int
public savepoint ( string $name ) : bool
select_db ( string $dbname ) : bool
send_query ( string $query ) : bool
set_charset ( string $charset ) : bool
mysqli_set_local_infile_default ( mysqli $link ) : void
set_local_infile_handler ( mysqli $link , callable $read_func ) : bool
mysqli_sqlstate ( mysqli $link ) : string
ssl_set ( string $key , string $cert , string $ca , string $capath , string $cipher ) : bool
stat ( void ) : string
store_result ([ int $option ] ) : mysqli_result
mysqli_thread_id ( mysqli $link ) : int
mysqli_thread_safe ( void ) : bool
mysqli_warning_count ( mysqli $link ) : int
}

Table of Contents

User Contributed Notes

There are no user contributed notes for this page.

CopyRight © 2008-2022 verySource.Com All Rights reserved. 京ICP备17048824号-1 京公网安备:11010502034788