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 ] ) : 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

  • mysqli::$affected_rows — Gets the number of affected rows in a previous MySQL operation
  • mysqli::autocommit — 锟津开伙拷乇毡锟斤拷锟斤拷锟斤拷菘锟斤拷锟斤拷拥锟斤拷远锟斤拷锟斤拷锟斤拷峤伙拷锟斤拷锟侥J�
  • mysqli::begin_transaction — Starts a transaction
  • mysqli::change_user — Changes the user of the specified database connection
  • mysqli::character_set_name — 锟斤拷锟截碉拷前锟斤拷锟捷匡拷锟斤拷锟接碉拷默锟斤拷锟街凤拷锟斤拷锟斤拷
  • mysqli::close — 锟截憋拷锟斤拷前锟津开碉拷锟斤拷锟捷匡拷锟斤拷锟斤拷
  • mysqli::commit — 锟结交一锟斤拷锟斤拷锟斤拷
  • mysqli::$connect_errno — Returns the error code from last connect call
  • mysqli::$connect_error — Returns a string description of the last connect error
  • mysqli::__construct — Open a new connection to the MySQL server
  • mysqli::debug — Performs debugging operations
  • mysqli::dump_debug_info — 锟斤拷锟斤拷锟斤拷锟斤拷息锟斤拷锟斤拷锟斤拷锟街�
  • mysqli::errno — 锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷玫拇锟斤拷锟斤拷锟斤拷
  • mysqli::$error_list — Returns a list of errors from the last command executed
  • mysqli::$error — Returns a string description of the last error
  • mysqli::$field_count — Returns the number of columns for the most recent query
  • mysqli::get_charset — Returns a character set object
  • mysqli::$client_info — 锟斤拷取 MySQL 锟酵伙拷锟斤拷锟斤拷息
  • mysqli_get_client_version — 锟斤拷为一锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷MySQL锟酵伙拷锟剿的版本
  • mysqli::get_connection_stats — 锟斤拷锟截客伙拷锟斤拷锟斤拷锟接碉拷统锟斤拷锟斤拷锟斤拷
  • mysqli::$host_info — 锟斤拷锟斤拷一锟斤拷锟斤拷锟斤拷使锟矫碉拷锟斤拷锟斤拷锟斤拷锟酵碉拷锟街凤拷锟斤拷
  • mysqli::$protocol_version — 锟斤拷锟斤拷MySQL使锟矫碉拷协锟斤拷姹撅拷锟�
  • mysqli::$server_info — 锟斤拷锟斤拷MySQL锟斤拷锟斤拷锟斤拷锟侥版本锟斤拷
  • mysqli::$server_version — 锟斤拷为一锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷MySQL锟斤拷锟斤拷锟斤拷锟侥版本
  • mysqli::get_warnings — Get result of SHOW WARNINGS
  • mysqli::$info — 锟斤拷锟斤拷锟斤拷锟街达拷械锟� SQL 锟斤拷锟斤拷锟斤拷息
  • mysqli::init — 锟斤拷始锟斤拷 MySQLi 锟斤拷锟斤拷锟斤拷一锟斤拷锟斤拷源锟斤拷锟酵碉拷值锟斤拷锟斤拷锟街碉拷锟斤拷锟斤拷锟轿� mysqli_real_connect() 锟斤拷锟斤拷锟侥达拷锟斤拷锟斤拷锟�
  • mysqli::$insert_id — 锟斤拷锟斤拷锟斤拷锟揭伙拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟� ID
  • mysqli::kill — 锟矫凤拷锟斤拷锟斤拷杀锟斤拷一锟斤拷 MySQL 锟竭筹拷
  • mysqli::more_results — 锟斤拷锟斤拷锟斤拷锟斤拷锟窖拷锟斤拷欠锟斤拷胁锟窖拷锟斤拷
  • mysqli::multi_query — 执锟叫诧拷询
  • mysqli::next_result — 为锟斤拷取 multi_query 执锟斤拷之锟斤拷锟斤拷锟揭伙拷锟斤拷锟斤拷锟斤拷锟斤拷准锟斤拷
  • mysqli::options — 锟斤拷锟斤拷选锟斤拷
  • mysqli::ping — ping 一锟斤拷锟斤拷锟接o拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷哟锟斤拷诙峡锟阶刺拷锟斤拷锟斤拷锟斤拷锟斤拷锟�
  • mysqli::poll — 锟斤拷询锟斤拷锟斤拷
  • mysqli::prepare — 准锟斤拷执锟斤拷一锟斤拷 SQL 锟斤拷锟�
  • mysqli::query — 锟斤拷锟斤拷锟捷匡拷执锟斤拷一锟轿诧拷询
  • mysqli::real_connect — 锟斤拷锟斤拷一锟斤拷 MySQL 锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷
  • mysqli::real_escape_string — 锟斤拷锟捷碉拷前锟斤拷锟接碉拷锟街凤拷锟斤拷锟斤拷锟斤拷锟斤拷 SQL 锟斤拷锟斤拷械锟斤拷锟斤拷锟斤拷址锟斤拷锟斤拷锟阶拷锟�
  • mysqli::real_query — 执锟斤拷一锟斤拷mysql锟斤拷询
  • mysqli::reap_async_query — 锟斤拷取锟届步锟斤拷询锟侥斤拷锟�
  • mysqli::refresh — 刷锟斤拷
  • mysqli::release_savepoint — 锟接碉拷前锟斤拷锟斤拷谋锟斤拷锟斤拷锟斤拷锟狡筹拷一锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟�
  • mysqli::rollback — 锟斤拷锟剿碉拷前锟斤拷锟斤拷
  • mysqli::rpl_query_type — 锟斤拷锟斤拷 RPL 锟斤拷询锟斤拷锟斤拷
  • mysqli::savepoint — 锟节碉拷前锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷一锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟�
  • mysqli::select_db — 选锟斤拷锟斤拷锟斤拷锟斤拷锟捷匡拷锟窖拷锟侥拷锟斤拷锟斤拷菘锟�
  • mysqli::send_query — 锟斤拷锟斤拷锟斤拷锟襟并凤拷锟截斤拷锟�
  • mysqli::set_charset — 锟斤拷锟斤拷默锟斤拷锟街凤拷锟斤拷锟斤拷
  • mysqli::set_local_infile_default — 取锟斤拷锟矫伙拷指锟斤拷锟侥回碉拷锟斤拷锟斤拷
  • mysqli::set_local_infile_handler — 锟斤拷锟斤拷 LOAD DATA LOCAL INFILE 锟斤拷锟斤拷幕氐锟斤拷锟斤拷锟�
  • mysqli::$sqlstate — 锟斤拷锟斤拷锟斤拷一锟斤拷 SQL 锟斤拷锟斤拷锟斤拷 SQLSTATE 锟斤拷锟斤拷锟斤拷息
  • mysqli::ssl_set — 使锟斤拷 SSL 锟斤拷锟斤拷锟斤拷锟斤拷锟捷匡拷之锟斤拷陌锟饺拷锟斤拷锟�
  • mysqli::stat — 锟斤拷取锟斤拷前系统状态锟斤拷息
  • mysqli::stmt_init — 锟斤拷始锟斤拷一锟斤拷锟斤拷洳拷锟斤拷锟揭伙拷锟斤拷锟斤拷锟絤ysqli_stmt_prepare(锟斤拷锟斤拷)锟侥讹拷锟斤拷
  • mysqli::store_result — 转锟斤拷锟斤拷一锟轿诧拷询锟斤拷锟截的斤拷锟斤拷锟�
  • mysqli::$thread_id — 锟斤拷锟截碉拷前锟斤拷锟接碉拷锟竭筹拷 ID
  • mysqli::thread_safe — 锟斤拷锟斤拷锟角凤拷锟斤拷锟竭程帮拷全锟斤拷
  • mysqli::use_result — Initiate a result set retrieval
  • mysqli::$warning_count — Returns the number of warnings from the last query for the given link