RE: [PHP] Alternating table rows...
| From: | David Freeman | Date: | Sat, 11 May 2002 00:34:57 +0000 |
| Subject: | RE: [PHP] Alternating table rows... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-97045@lists.php.net to get a copy of this message | ||
> I've been asked if I can alternate the colors of the
> rows to make the report more legible.
What I usually do is something like this:
if ($colour == "blue") $colour = "red" else $colour = "blue";
Then the bit where you actually output display you use $colour to set
display attributes and away you go.
CYA, Dave