$n = 1; echo "<table><tr>"; while ($row = mysql_fetch....) { if (($n % 2) == 0) { echo "<td>indhold (kolonne 2)</td></tr><tr>"; } else { echo "<td>indhold (kolonne 1)</td>"; } $n++; }