PHP Manual
mysqli_multi_query
(PHP 5)
mysqli_multi_query(no version information, might be only in CVS)
mysqli->multi_query() -- Performs a query on the databaseDescription
Procedural style:
bool mysqli_multi_query ( mysqli link, string query )Object oriented style (method):
class mysqli {bool multi_query ( string 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().
Parameters
linkProcedural style only: A link identifier returned by mysqli_connect() or mysqli_init()
queryThe query, as a string.
Return Values
Returns FALSE if the first statement failed. To retrieve subsequent errors from other statements you have to call mysqli_next_result() first.
Examples
Example 2. Procedural style
|
The above example will output something similar to:
my_user@localhost ----------------- Amersfoort Maastricht Dordrecht Leiden Haarlemmermeer |
Support PHPRO.ORG
Search
PHPRO.ORG Poll
Warning: Participation in PHPRO.ORG polls may incorrectly lead you to believe your opinions matter.

RSS Feed




