跳转到主要内容

construct

mysqli_stmt::__construct

Constructs a new

mysqli_stmt

object

ENTITY

public

mysqli_stmt::__construct

mysqli

mysql

string

null

query

ENTITY

This method constructs a new mysqli_stmt object.

ENTITY

query
The query, as a string. If this parameter is ENTITY, then the constructor behaves identically to mysqli_stmt_init, otherwise it behaves as per mysqli_prepare.

ENTITY ENTITY

ENTITY

ENTITY ENTITY
8.0.0 query is now nullable.

ENTITY

mysqli_prepare, mysqli_stmt_init