PHP mysqli_next_result() Function

The mysqli_next_result() function prepares the next result set from mysqli_multi_query().

mysqli_next_result(connection);

Example -

Perform multiple queries against the database. Use mysqli_next_result() function to prepare the next result set:

ParameterDescription
connectionRequired. Specifies the MySQL connection to use