Two way I can think of doing this... But another thing to keep in mind, you may want to have it spit out a colspan or more td's if you dont have enough coumns for the last set.
$counter = 0;
while ($row = mysql_fetch_array($c1->sqlQuery)){
$counter++;
if($counter == 1)
{
echo "<tr>"
}
echo "<td>" . $row["result_field"] . "</td>";
if($counter == 4)
{
echo"</tr>";
$counter = 0;
}
} // end of while
if($counter != 0)
{
$tmpnum = 4 - $counter;
echo "<td colspan=\"$tmpnum\"></td>";
}
I think that all works. Hope that helps.