2024 PHP Conference Japan

mysqli_stmt 類別

(PHP 5, PHP 7, PHP 8)

簡介

表示一個預備語句。

類別概要

類別 mysqli_stmt {
/* 屬性 */
公開 唯讀 整數|字串 $affected_rows;
公開 唯讀 整數|字串 $insert_id;
公開 唯讀 整數|字串 $num_rows;
公開唯讀 整數 $param_count;
公開唯讀 整數 $field_count;
公開唯讀 整數 $errno;
公開唯讀 字串 $error;
公開唯讀 陣列 $error_list;
公開唯讀 字串 $sqlstate;
公開 整數 $id;
/* 方法 */
公開 __construct(mysqli $mysql, (?字串) $query = null)
公開 attr_get(int $attribute): int
公開 attr_set(int $attribute, int $value): bool
公開 bind_param(string $types, mixed &$var, mixed &...$vars): bool
公開 bind_result(mixed &$var, mixed &...$vars): bool
公開 close(): true
公開 data_seek(int $offset): void
公開 execute(?array $params = null): bool
公開 fetch(): ?bool
公開 free_result(): void
公開 more_results(): bool
公開 next_result(): bool
公開 num_rows(): int|string
公開 prepare(string $query): bool
公開 reset(): bool
公開 send_long_data(int $param_num, string $data): bool
公開 store_result(): bool
}

屬性

id

儲存陳述式 ID。

目錄

新增註解

使用者貢獻的註解

此頁面沒有使用者貢獻的註解。
To Top