Re: printing repeat table headers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux