php8.5
Home/ Manual/ mysqli / mysqli/ mysqli::next_result

mysqli::next_result

PHP function Edit on GitHub ✎

(PHP 5, PHP 7, PHP 8)

Prepare next result from multi_query

Description

Oop

mysqli::next_result(): bool

Procedural

mysqli_next_result(mysqli $mysql): bool

Prepares next result set from a previous call to mysqli_multi_query() which can be retrieved by mysqli_store_result() or mysqli_use_result().

Parameters

Return Values

Success Also returns false if the next statement resulted in an error, unlike mysqli_more_results.

Errors/Exceptions Conditionalexception

Examples

See mysqli_multi_query().

See Also

Source: reference/mysqli/mysqli/next-result.xml · from the official PHP manual (php/doc-en)