RE: [PHP] alternating row color--newbie help
| From: | Jay Blanchard | Date: | Thu, 15 Apr 2004 20:10:31 +0000 |
| Subject: | RE: [PHP] alternating row color--newbie help | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-183561@lists.php.net to get a copy of this message | ||
[snip]
I'd appreciate any hints on this...
[/snip]
Try this (verbose)....
/* change the row color */
if(0 == $rc){
$colorClass = "white";
echo "<tr bgcolor=\"white\">\n";
$rc++;
} else {
$colorClass = "grey";
echo "<tr bgcolor=\"yellow\">\n";
$rc--;
}