(PHP 5, PHP 7, PHP 8)
mysqli_stmt::__construct — Construye un nuevo objeto mysqli_stmt
Este método construye un nuevo objeto mysqli_stmt.
link
Un objeto mysqli válido.
query
La consulta, en forma de string. Si este argumento es null
,
entonces el constructor se comportará como la función
mysqli_stmt_init(); de lo contrario, se comportará como la función mysqli_prepare().
If mysqli error reporting is enabled (MYSQLI_REPORT_ERROR
) and the requested operation fails,
a warning is generated. If, in addition, the mode is set to MYSQLI_REPORT_STRICT
,
a mysqli_sql_exception is thrown instead.
Versión | Descripción |
---|---|
8.0.0 |
query ahora es nullable.
|