|
PHP5中文手册
PDOStatement->bindValue()(PHP 5 >= 5.1.0, PECL pdo:1.0-1.0.3) PDOStatement->bindValue() — Binds a value to a parameter 说明PDOStatement
bool bindValue
( mixed $parameter
, mixed $value
[, int $data_type
] )
Binds a value to a corresponding named or question mark placeholder in the SQL statement that was use to prepare the statement. 参数
返回值如果成功则返回 TRUE,失败则返回 FALSE。 范例Example#1 Execute a prepared statement with named placeholders
<?php Example#2 Execute a prepared statement with question mark placeholders
<?php |