mysqli::next_result
mysqli_next_result
Prepare next result from multi_query
Description
Object-oriented style
public bool mysqli::next_result()
bool mysqli_next_result(mysqli $mysql)
Parameters
-
mysql
-
Procedural style only: A mysqli object
returned by mysqli_connect or mysqli_init
Return Values
Returns true on success or false on failure. Also returns false if the next statement resulted in an error, unlike mysqli_more_results.
Errors/Exceptions
If mysqli error reporting is enabled (MYSQLI_REPORT_ERROR) and the requested operation fails,
a warning is generated. If, in addition, the mode is set to MYSQLI_REPORT_STRICT,
a mysqli_sql_exception is thrown instead.
Examples
See mysqli_multi_query.
See Also
- mysqli_multi_query
- mysqli_more_results
- mysqli_store_result
- mysqli_use_result