Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PHP mysqli_next_result() Function

PHP mysqli_next_result() Function

PHP MySQLi Reference Manual PHP MySQLi Reference Manual

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



";

            }

        }

    } while (mysqli_next_result($con));

}



mysqli_close($con);

?>


Definition and Usage

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


Syntax

mysqli_next_result(

connection

)

;

Parameters Description
connection Required. Specifies the MySQL connection to use.

Technical Details

Return Value: Returns TRUE on success, FALSE on failure.
PHP Version: 5+

PHP MySQLi Reference Manual PHP MySQLi Reference Manual