PHP 8.4.2 Released!

La clase mysqli

(PHP 5, PHP 7, PHP 8)

Introducción

Representa una conexión entre PHP y una base de datos MySQL.

Sinopsis de la Clase

class mysqli {
/* Propiedades */
/* Métodos */
__construct(
    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")
)
change_user(string $user, string $password, string $database): bool
commit(int $flags = ?, string $name = ?): bool
debug(string $message): bool
mysqli_stmt::get_server_info(): string
kill(int $processid): bool
options(int $option, mixed $value): bool
public static poll(
    array &$read,
    array &$error,
    array &$reject,
    int $sec,
    int $usec = ?
): int
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
public refresh(int $options): bool
rollback(int $flags = ?, string $name = ?): bool
ssl_set(
    string $key,
    string $cert,
    string $ca,
    string $capath,
    string $cipher
): bool
}

Tabla de contenidos

add a note

User Contributed Notes

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