|
PHP5中文手册
mysqli_use_resultmysqli->use_result()(PHP 5) mysqli->use_result() — Initiate a result set retrieval 说明Procedural style:
mysqli_result mysqli_use_result
( mysqli $link
)
Object oriented style (method): mysqli
mysqli_result use_result
( void
)
Used to initiate the retrieval of a result set from the last query executed using the mysqli_real_query() function on the database connection. Either this or the mysqli_store_result() function must be called before the results of a query can be retrieved, and one or the other must be called to prevent the next query on that database connection from failing.
返回值Returns an unbuffered result object or FALSE if an error occurred. 范例Example#1 Object oriented style
<?php Example#2 Procedural style
<?php 上例将输出:
|