php3-list | 199903
Date: 03/18/99
- Next message: Milen A. Radev: "[PHP3] exec() problem (newbie)"
- Previous message: James Coates: "Re: [PHP3] Simple calendar functions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
At 09:03 18/03/99 -0500, you wrote:
>Does anyone have a script that will display the results of a search in
>alternating colors; one row white the next light gray, ect,ect.
I've done it like this;
for ($count=0; $count<whatever; $count++) {
if ($count%2) { $bg="#eeeeee"; } else { $bg="#ffffff"; }
echo "<td bgcolor=\"$bg\">whatever</td>";
}
James.
-- ------------------------------------------------------------------------------ James Coates http://www.c2.net/ Web Developer t: +44 1635 523700 c2net Europe Limited f: +44 1635 552529-- PHP 3 Mailing List http://www.php.net/ To unsubscribe send an empty message to php3-unsubscribe <email protected> To subscribe to the digest list: php3-digest-subscribe <email protected> For help: php3-help <email protected> Archive: http://www.php.net/mailsearch.php3 List administrator: zeev-list-admin <email protected>
- Next message: Milen A. Radev: "[PHP3] exec() problem (newbie)"
- Previous message: James Coates: "Re: [PHP3] Simple calendar functions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

