PHP 8.5.0 Beta 3 available for testing

Voting

: min(nine, four)?
(Example: nine)

The Note You're Voting On

Ivan Gabriele
11 years ago
To be able to execute a $mysqli->query() after a $mysqli->multi_query() for MySQL > 5.3, I updated the code of jcn50 by this one :

<?php
// WORKING CODE:
$mysqli->multi_query(" Many SQL queries ; "); // OK

while ($mysqli->next_result()) // flush multi_queries
{
if (!
$mysqli->more_results()) break;
}

$mysqli->query(" SQL statement #1 ; ") // now executed!
$mysqli->query(" SQL statement #2 ; ") // now executed!
$mysqli->query(" SQL statement #3 ; ") // now executed!
$mysqli->query(" SQL statement #4 ; ") // now executed!
?>

<< Back to user notes page

To Top