RE: [PHP] Alternate colors
| From: | Jennifer Goodie | Date: | Wed, 14 May 2003 00:45:58 +0000 |
| Subject: | RE: [PHP] Alternate colors | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-147520@lists.php.net to get a copy of this message | ||
> how can i display it in html
> with an alternate colors in
> the rows!!!
quick, dirty example of aleternating something
$bgcolor = (++$i%2)?"#FFFFFF":"#CCCCCC";
For a more complete answer, search the archive, this is asked about once a
day, it seems.
http://marc.theaimsgroup.com/?l=php-general&w=2&r=1&s=alternate+color&q=b