Re: :: Alternating Rows :: Script With More Explaining ::
| From: | Terry Romine | Date: | Fri, 07 Dec 2001 15:22:11 +0000 |
| Subject: | Re: :: Alternating Rows :: Script With More Explaining :: | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-14867@lists.php.net to get a copy of this message | ||
Couldn't you use
$alt=(!$alt);
echo "<TR BGCOLOR=\"".$bg[$alt]."\">\n";On Thursday, December 6, 2001, at 03:07 PM, Vins wrote:
if(ereg("1$|3$|5$|7$|9$", $i)) {
$bg[$i] = "#FFFFFF";
} else {
$bg[$i] = "#CCCCCC";
}