mysqli_multi_query mysqli->multi_query Performs a query on the database Description Procedural style: boolmysqli_multi_query objectlink stringquery Object oriented style (method): mysqli bool multi_query stringquery The mysqli_multi_query executes one or multiple queries which are concatenated by a semicolon. To retrieve the resultset from the first query you can use mysqli_use_result or mysqli_store_result. All subsequent query results can be processed using mysqli_more_results and mysqli_next_result. Return values &return.success; See also mysqli_use_result, mysqli_store_result, mysqli_next_result, mysqli_more_results Example Object oriented style multi_query($query)) { do { /* store first result set */ if ($result = $mysqli->store_result()) { while ($row = $result->fetch_row()) { printf("%s\n", $row[0]); } $result->close(); } /* print divider */ if ($mysqli->more_results()) { printf("-----------------\n"); } } while ($mysqli->next_result()); } /* close connection */ $mysqli->close(); ?> ]]> Procedural style ]]> The above examples would produce the following output: