PHP 8.0.6 Released!

A classe MySQLi

Introdução

Representa uma conexão entre o PHP e um banco de dados MySQL.

Sinopse da classe

MySQLi {
/* Propriedades */
int $affected_rows;
int $errno;
string $error;
string $host_info;
string $protocol_version;
string $server_info;
int $server_version;
string $info;
int $insert_id;
/* Métodos */
mysqli_affected_rows ( mysqli $link ) : int
mysqli::autocommit ( bool $mode ) : bool
public mysqli::begin_transaction ( int $flags = 0 , string|null $name = null ) : bool
mysqli::change_user ( string $user , string $password , string $database ) : bool
mysqli::commit ( ) : bool
public mysqli::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
mysqli_errno ( mysqli $link ) : int
mysqli_error_list ( mysqli $mysql ) : array
mysqli_error ( mysqli $link ) : string
public mysqli::get_charset ( ) : object|null
public mysqli::get_connection_stats ( ) : array
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
mysqli_init ( ) : mysqli
mysqli_insert_id ( mysqli $link ) : int
mysqli::kill ( int $processid ) : bool
mysqli::multi_query ( string $query ) : bool
public mysqli::options ( int $option , string|int $value ) : bool
public mysqli::ping ( ) : bool
public static mysqli::poll ( array|null &$read , array|null &$error , array &$reject , int $seconds , int $microseconds = 0 ) : int|false
public mysqli::prepare ( string $query ) : mysqli_stmt|false
public mysqli::query ( string $query , int $result_mode = MYSQLI_STORE_RESULT ) : mysqli_result|bool
public mysqli::real_connect ( string $host = ? , string $username = ? , string $passwd = ? , string $dbname = ? , int $port = ? , string $socket = ? , int $flags = ? ) : bool
public mysqli::real_escape_string ( string $string ) : string
public mysqli::real_query ( string $query ) : bool
public mysqli::refresh ( int $flags ) : bool
public mysqli::release_savepoint ( string $name ) : bool
public mysqli::rollback ( int $flags = 0 , string|null $name = null ) : bool
public mysqli::savepoint ( string $name ) : bool
public mysqli::select_db ( string $database ) : bool
public mysqli::set_charset ( string $charset ) : bool
mysqli_sqlstate ( mysqli $mysql ) : string
public mysqli::ssl_set ( string|null $key , string|null $certificate , string|null $ca_certificate , string|null $ca_path , string|null $cipher_algos ) : bool
public mysqli::stat ( ) : string|false
public mysqli::stmt_init ( ) : mysqli_stmt|false
public mysqli::store_result ( int $mode = 0 ) : mysqli_result|false
mysqli_thread_id ( mysqli $mysql ) : int
public mysqli::thread_safe ( ) : bool
public mysqli::use_result ( ) : mysqli_result|false
mysqli_warning_count ( mysqli $mysql ) : int
}

Índice

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top