|
PDOStatement::bindValueBinds a value to a parameter Description
public bool PDOStatement::bindValue
( mixed
$parameter
, mixed $value
[, int $data_type = PDO::PARAM_STR
] )Binds a value to a corresponding named or question mark placeholder in the SQL statement that was used to prepare the statement. Parameters
Return Values
Returns ExamplesExample #1 Execute a prepared statement with named placeholders
<?php Example #2 Execute a prepared statement with question mark placeholders
<?php See Also
|