Zabalte výsledek do jiné tabulky.
echo "<table>";
$count = 0;
$num_columns = 2; // or 3
while ($rc = mysql_fetch_array($results_course)) {
if ($count++ % $num_columns == 0) {
echo "<tr>";
}
echo "<td>";
// previous table code here
echo "</td>";
if ($count % $num_columns == 0) {
echo "</tr>";
}
}
if ($count % $num_columns > 0) {
echo "</tr>";
}
echo "</table>";