On 15-Apr-2004 Chris W. Parker wrote: <snip> > for($i = 0; $i < $numofrows; $i++) > { > ... > $row_color = ($i % 2 == 0) ? "yellow" : "white" ;
$row_color = $row_color == "yellow" ? "white" : "yellow" ; > > echo "<tr bgcolor=\"$row_color\">\n"; > ... Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's the time to do it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php