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); } ?>