for($i=0; $i<=4; $i++){
print ("<td bgcolor=CC9966><a href=\"test.php\">" . $row["field2"] . "</a></td>");
}
is bad. like "while $i is less than 4, print stuff between {}". You started out right with the while()...
while ($row = mysql_fetch_array($mysql_result)) {
echo '<tr>';
echo '<td>'.$row["field1"].'</td>';
echo '<td>'.$row["field2"].'</td>';
echo '<td>'.$row["field3"].'</td>';
echo '<td>'.$row["field4"].'</td>';
echo '</tr>';
}
You might do it another way, but it's an example...