Prepare an SQL statement for accepting bound parameters
Usage
// basic usage
$pDOStatement = $database->prepare(string $statement);
// usage with all arguments
$pDOStatement = $database->prepare(string $statement, $driver_options = [], string $note = '');
Arguments
Name | Type(s) | Description |
---|---|---|
statement | string | |
driver_options (optional) | array, string, bool | Optionally specify one of the following:
|
note (optional) | string | Debug notes to save with query in debug mode |
Return value
PDOStatement
WireDatabasePDOStatement
$database methods and properties
API reference based on ProcessWire core version 3.0.236