PHP Function Reference

PHP mysqli_stmt next_result() Method



The PHP mysqli_stmt::next_result() / mysqli_stmt_next_result() function is used to read the next result from a multiple query.

Note: Prior to PHP 8.1.0, available only with mysqlnd.

Syntax

//Object-oriented style
public mysqli_stmt::next_result()

//Procedural style
mysqli_stmt_next_result(statement)

Parameters

statement Required. For procedural style only: Specify a mysqli_stmt object returned by mysqli_stmt_init().

Return Value

Returns true on success or false on failure.


❮ PHP MySQLi Reference