PHP mysqli_multi_query() Function

PHP mysqli_multi_query() function performs one or multiple queries on the database.

Syntax

mysqli_multi_query() Function Parameter

ParameterDescription
connection :Required parameter. The MySQL connection to be used
query :Required parameter. Mention query, as a string.

mysqli_multi_query() Function Return Value

Return Values :Returns FALSE if the first statement failed. To retrieve subsequent errors from other statements you have to call mysqli_next_result() first.

mysqli_multi_query() Function Example