Binds a value to a corresponding named or positional placeholder in the SQL statement that was used to prepare the statement.
Signature
public function bindValue(mixed
$param,
[mixed
$value = null,
[integer
$type = null]] )
Parameters
$param
—
mixed
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
—
mixed
The value to bind to the parameter.
$type
—
integer
Explicit data type for the parameter using the PDO::PARAM_* constants.