|
PHP5中文手册
maxdb_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 maxdb_stmt_bind_result
( resource $stmt
, mixed &$var1
[, mixed &$...
] )
Object oriented style (method): stmt
bool
bind_result
( mixed &$var1
[, mixed &$...
] )
maxdb_stmt_bind_result() is used to associate (bind) columns in the result set to variables. When maxdb_stmt_fetch() is called to fetch data, the MaxDB 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 The above examples would produce the following output:
|