|
PHP5中文手册
mysqli_stmt_bind_paramstmt->bind_param()(No version information available, might be only in CVS) stmt->bind_param() — Binds variables to a prepared statement as parameters 说明Procedural style:
bool mysqli_stmt_bind_param
( mysqli_stmt $stmt
, string $types
, mixed &$var1
[, mixed &$...
] )
Object oriented style (method): mysqli_stmt
bool bind_param
( string $types
, mixed &$var1
[, mixed &$...
] )
Bind variables for the parameter markers in the SQL statement that was passed to mysqli_prepare().
参数
返回值如果成功则返回 TRUE,失败则返回 FALSE。 范例Example#1 Object oriented style
<?php Example#2 Procedural style
<?php 上例将输出:
|