|
PHP5中文手册
mysqli_stmt_bind_resultstmt->bind_result()(No version information available, might be only in CVS) stmt->bind_result() — Binds variables to a prepared statement for result storage 说明Procedural style:
bool mysqli_stmt_bind_result
( mysqli_stmt $stmt
, mixed &$var1
[, mixed &$...
] )
Object oriented style (method): mysqli_stmt
bool bind_result
( mixed &$var1
[, mixed &$...
] )
Binds columns in the result set to variables. When mysqli_stmt_fetch() is called to fetch data, the MySQL client/server protocol places the data for the bound columns into the specified variables var1, ... .
参数
返回值如果成功则返回 TRUE,失败则返回 FALSE。 范例Example#1 Object oriented style
<?php Example#2 Procedural style
<?php 上例将输出:
|