How can I repeat automatically the column title every 20 rows/results?
$cnt = 0; while ($row = mysql_fetch_array($result)) { $cnt++; if ($cnt > 20) { $cnt =1; } if ($cnt == 1) { print "$title<br>\n"; } print $row['whatever']."<br>\n"; }