I currently have this:
<?php
$length = count($data['mark']);
$i=0;
$s=1;
for($i=0;$i<$length;$i++){
$sql="UPDATE `groupdatabase1` .`questions` SET `mark`=".$data['mark'][$i].", `feedback`= '".$data['feedback'][$i]."' WHERE `question`= ".$s." ;";
mysql_query($sql);
echo $sql;
}
?>
I have an unknown amount of queries to run from this, meaning multiple queries in succession. How do I go about running them all one after another?