mysqli_multi_query mysqli->multi_query Performs a query on the database Description Procedural style: boolmysqli_multi_query mysqlilink stringquery Object oriented style (method): mysqli boolmulti_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. &reftitle.returnvalues; mysqli_multi_query only returns &false; if the first statement failed. To retrieve subsequent errors from other statements you have to call mysqli_next_result first. &reftitle.seealso; mysqli_use_result, mysqli_store_result, mysqli_next_result&listendand; mysqli_more_results. &reftitle.examples; 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 ]]> &example.outputs;