$Sql = "SELECT firstname,lastname FROM personnel";
$Result = mysql_query($Sql);
echo "<table><tr>";
$Cnt = 0;
while($Row = mysql_fetch_array($Result)){
$Cnt++;
if(bcmod($Cnt , 3) == 0 ){
echo "<td>$Row[0],$Row[1]</td></tr><tr>";
}else{
echo "<td>$Row[0],$Row[1]</td>";
}
}
echo "</tr></table>";