mysqli_stmt::__construct
PHP function
Edit on GitHub ✎
(PHP 5, PHP 7, PHP 8)
Constructs a new mysqli_stmt object
Description
mysqli_stmt::__construct(mysqli $mysql, string|null $query = null)
This method constructs a new mysqli_stmt object.
Parameters
linkA valid
mysqliobject.queryThe query, as a string. If this parameter is null, then the constructor behaves identically to
mysqli_stmt_init(), otherwise it behaves as permysqli_prepare().
Errors/Exceptions Conditionalexception
Changelog
| Version | Description |
|---|---|
| 8.0.0 | query is now nullable. |