![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
|||||||||||
mysqli_multi_query(PHP 5) mysqli_multi_query(no version information, might be only in CVS) mysqli->multi_query -- Performs a query on the databaseDescriptionProcedural style: bool mysqli_multi_query ( mysqli link, string query )Object oriented style (method): class mysqli {bool multi_query ( string query ) } 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 Valuesmysqli_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. See Alsomysqli_use_result(), mysqli_store_result(), mysqli_next_result() and mysqli_more_results(). Examples
The above example will output:
Copyright © 1997 - 2007 by the PHP Documentation Group. This material may be distributed only subject to the terms and conditions set forth in the Open Publication License, v1.0 or later. A copy of the Open Publication License is distributed with this manual, the latest version is presently available at http://www.opencontent.org/openpub/. Please see full copyright text at http://www.php.net/manual/en/copyright.php Original version of the above documentation is available at http://www.php.net/manual/en/ |
|