The mysqli_stmt class

Introduction

Represents a prepared statement.

Class synopsis

mysqli_stmt
/* Properties */
public readonly intstring $affected_rows;
public readonly intstring $insert_id;
public readonly intstring $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;
/* Methods */
public __construct(mysqli $mysql, stringnull $query = null)
public int attr_get(int $attribute)
public bool attr_set(int $attribute, int $value)
public bool bind_param(string $types, mixed &$var, mixed &...$vars)
public bool bind_result(mixed &$var, mixed &...$vars)
public true close()
public void data_seek(int $offset)
public bool execute(arraynull $params = null)
public boolnull fetch()
public void free_result()
public mysqli_resultfalse get_result()
public mysqli_warningfalse get_warnings()
public bool more_results()
public bool next_result()
public intstring num_rows()
public bool prepare(string $query)
public bool reset()
public mysqli_resultfalse result_metadata()
public bool send_long_data(int $param_num, string $data)
public bool store_result()

Properties

id

Stores the statement ID.

Table of Contents