| Methods |
public
|
bindValue($param, $value, $type = ParameterType::STRING)
{@inheritDoc}
Parameters
| $param |
Parameter identifier. For a prepared statement using named placeholders,
this will be a parameter name of the form :name. For a prepared statement
using question mark placeholders, this will be the 1-indexed position of the parameter.
|
| $value |
The value to bind to the parameter.
|
| $type |
Explicit data type for the parameter using the {@see ParameterType}
constants.
|
Returns
TRUE on success or FALSE on failure.
Throws
Implements
|
#
|
public
|
bindParam(
mixed $param,
mixed &$variable,
int $type = ParameterType::STRING,
int|null $length = null,
mixed $driverOptions = null,
): bool
{@inheritDoc}
Deprecated
Use {@see bindValue()} instead.
Parameters
| $param |
Parameter identifier. For a prepared statement using named placeholders,
this will be a parameter name of the form :name. For a prepared statement using
question mark placeholders, this will be the 1-indexed position of the parameter.
|
| $variable |
Name of the PHP variable to bind to the SQL statement parameter.
|
| $type |
Explicit data type for the parameter using the {@see ParameterType}
constants.
|
| $length |
You must specify maxlength when using an OUT bind
so that PHP allocates enough memory to hold the returned value.
|
| $driverOptions |
The usage of the argument is deprecated.
|
Returns
TRUE on success or FALSE on failure.
Throws
Implements
|
#
|
public
|
execute($params = null): Result
{@inheritDoc}
Parameters
| $params |
A numeric array of values with as many elements as there are
bound parameters in the SQL statement being executed.
|
Implements
|
#
|