PHPのお勉強!

PHP TOP

mysqli_stmt クラス

(PHP 5, PHP 7, PHP 8)

はじめに

プリペアドステートメントを表します。

クラス概要

class mysqli_stmt {
/* プロパティ */
public readonly int|string $affected_rows;
public readonly int|string $insert_id;
public readonly int|string $num_rows;
public readonly int $param_count;
public readonly int $field_count;
public readonly int $errno;
public readonly string $error;
public readonly array $error_list;
public readonly string $sqlstate;
public int $id;
/* メソッド */
public __construct(mysqli $mysql, ?string $query = null)
public attr_get(int $attribute): int
public attr_set(int $attribute, int $value): bool
public bind_param(string $types, mixed &$var, mixed &...$vars): bool
public bind_result(mixed &$var, mixed &...$vars): bool
public close(): true
public data_seek(int $offset): void
public execute(?array $params = null): bool
public fetch(): ?bool
public free_result(): void
public more_results(): bool
public next_result(): bool
public num_rows(): int|string
public prepare(string $query): bool
public reset(): bool
public send_long_data(int $param_num, string $data): bool
public store_result(): bool
}

プロパティ

id

プリペアドステートメントの ID を保持します。

目次

add a note

User Contributed Notes

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