Menu
I would like to do 20 querys without have to write the code for each one. I have not been able to achieve this. Here is the code.
[code=php]$sql1=”SELECT cost1 FROM dawn_quotes WHERE year=’$year’ AND notax1=” “;
$results1 = mysql_query($sql1);
while ($rows=mysql_fetch_array($results1)) {
$sum1 += $rows[‘cost1’];
}
I would like to repeat this code for numbers 1 through 20.