maxdb_multi_query
maxdb->multi_query
Performs a query on the database
Description
Procedural style:
boolmaxdb_multi_query
resourcelink
stringquery
Object oriented style (method):
maxdb
bool
multi_query
stringquery
The maxdb_multi_query works like the function
maxdb_query. Multiple queries are not yet supported.
Return values
&return.success;
See also
maxdb_use_result,
maxdb_store_result,
maxdb_next_result,
maxdb_more_results
Example
Object oriented style
multi_query($query)) {
do {
/* store first result set */
if ($result = $maxdb->store_result()) {
while ($row = $result->fetch_row()) {
printf("%s\n", $row[0]);
}
$result->close();
}
/* print divider */
if ($maxdb->more_results()) {
printf("-----------------\n");
}
} while ($maxdb->next_result());
}
/* close connection */
$maxdb->close();
?>
]]>
Procedural style
]]>
The above examples would produce the following output: