(PHP 5, PHP 7, PHP 8)
mysqli_stmt::__construct — Erzeugt ein neues mysqli_stmt-Objekt
Diese Methode erzeugt ein neues mysqli_stmt-Objekt.
linkEin gültiges mysqli-Objekt.
query
Die Abfrage als Zeichenkette. Wenn der Parameter null ist, dann
verhält sich der Konstruktor genau wie
mysqli_stmt_init(), andernfalls verhält er sich wie
bei 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.
| Version | Beschreibung |
|---|---|
| 8.0.0 |
query ist nun ein Nullable-Typ.
|