Re: MYSQL IN A PHP LOOP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Multiple query can only be done in PHP 5 with MySQLI extension.

In PHP 4 maybe you can use an array to store the query and execute each
query with foreach :

<?php
$query[] = "UPDATE bla.. bla..";
$query[] = "UPDATE bla.. bla..";
$query[] = "UPDATE bla.. bla..";

foreach ($query as $eachquery){
mysql_query($eachquery);
}

?>

[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux