Re: printing repeat table headers

From: Date: Sat, 15 Feb 2003 18:07:36 +0000
Subject: Re: printing repeat table headers
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-25653@lists.php.net to get a copy of this message
sfolkwilliams@mn.rr.com (Sam Folk-Williams) writes: > ...What I would like to do is have those headers repeat every 33 > rows... > $tableHeaders = "<tr>...</td>"; $cnt = 0; > while ($row = mysql_fetch_array($result)) { // stuff if($cnt%33 == 0){ echo $tableHeaders; } $cnt++; > echo "$tableContent"; > } //close while loop -- --Fredrik A mathematician is a machine for converting coffee into theorems.

« previous php.db (#25653) next »