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

mysqli_stmt::next_result

PHP function Edit on GitHub ✎

(PHP 5 >= 5.3.0, PHP 7, PHP 8)

Reads the next result from a multiple query

Description

Oop

mysqli_stmt::next_result(): bool

Procedural:

mysqli_stmt_next_result(mysqli_stmt $statement): bool

Reads the next result from a multiple query.

Note

Prior to PHP 8.1.0, available only with mysqlnd.

Parameters

Return Values

Success

Errors/Exceptions Conditionalexception

Changelog

VersionDescription
8.1.0Now also available when linking against libmysqlclient.

See Also

  • mysqli_stmt::more_results
  • mysqli::multi_query

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