PHP: Hypertext Preprocessor (original) (raw)
class **mysqli {
/* Properties */
public readonly int|string $affected_rows;
public readonly string $client_info;
public readonly int $client_version;
public readonly int $connect_errno;
public readonly ?string $connect_error;
public readonly string $error;
public readonly array $error_list;
public readonly int $field_count;
public readonly string $host_info;
public readonly ?string $info;
public readonly int|string $insert_id;
public readonly string $server_info;
public readonly int $server_version;
public readonly string $sqlstate;
public readonly int $protocol_version;
public readonly int $thread_id;
public readonly int $warning_count;
/* Methods */
public __construct(
?string $hostname
= [null](reserved.constants.php#constant.null)
,
?string $username
= [null](reserved.constants.php#constant.null)
,
#[\SensitiveParameter] ?string $password
= [null](reserved.constants.php#constant.null)
,
?string $database
= [null](reserved.constants.php#constant.null)
,
?int $port
= [null](reserved.constants.php#constant.null)
,
?string $socket
= [null](reserved.constants.php#constant.null)
)
public autocommit(bool $enable
): bool
public begin_transaction(int $flags
= 0, ?string $name
= [null](reserved.constants.php#constant.null)
): bool
public change_user(string $username
, #[\SensitiveParameter] string $password
, ?string $database
): bool
public character_set_name(): string
public commit(int $flags
= 0, ?string $name
= [null](reserved.constants.php#constant.null)
): bool
public connect(
?string $hostname
= [null](reserved.constants.php#constant.null)
,
?string $username
= [null](reserved.constants.php#constant.null)
,
#[\SensitiveParameter] ?string $password
= [null](reserved.constants.php#constant.null)
,
?string $database
= [null](reserved.constants.php#constant.null)
,
?int $port
= [null](reserved.constants.php#constant.null)
,
?string $socket
= [null](reserved.constants.php#constant.null)
): bool
public debug(string $options
): true
public dump_debug_info(): bool
public execute_query(string $query
, ?array $params
= [null](reserved.constants.php#constant.null)
): mysqli_result|bool
public get_charset(): ?object
#[\Deprecated]
public get_client_info(): string
public get_connection_stats(): array
public get_server_info(): string
public get_warnings(): mysqli_warning|false
#[\Deprecated]
public init(): ?bool
#[\Deprecated]
public kill(int $process_id
): bool
public more_results(): bool
public multi_query(string $query
): bool
public next_result(): bool
public options(int $option
, string|int $value
): bool
#[\Deprecated]
public ping(): bool
public static poll(
?array &$read
,
?array &$error
,
array &$reject
,
int $seconds
,
int $microseconds
= 0
): int|false
public prepare(string $query
): mysqli_stmt|false
public query(string $query
, int $result_mode
= [MYSQLI_STORE_RESULT](mysqli.constants.php#constant.mysqli-store-result)
): mysqli_result|bool
public real_connect(
?string $hostname
= [null](reserved.constants.php#constant.null)
,
?string $username
= [null](reserved.constants.php#constant.null)
,
#[\SensitiveParameter] ?string $password
= [null](reserved.constants.php#constant.null)
,
?string $database
= [null](reserved.constants.php#constant.null)
,
?int $port
= [null](reserved.constants.php#constant.null)
,
?string $socket
= [null](reserved.constants.php#constant.null)
,
int $flags
= 0
): bool
public real_escape_string(string $string
): string
public real_query(string $query
): bool
public reap_async_query(): mysqli_result|bool
#[\Deprecated]
public refresh(int $flags
): bool
public release_savepoint(string $name
): bool
public rollback(int $flags
= 0, ?string $name
= [null](reserved.constants.php#constant.null)
): bool
public savepoint(string $name
): bool
public select_db(string $database
): bool
public set_charset(string $charset
): bool
public ssl_set(
?string $key
,
?string $certificate
,
?string $ca_certificate
,
?string $ca_path
,
?string $cipher_algos
): true
public stmt_init(): mysqli_stmt|false
public store_result(int $mode
= 0): mysqli_result|false
public thread_safe(): bool
public use_result(): mysqli_result|false
}