RE: [PHP] Alternate row color

From: Date: Wed, 09 Aug 2000 22:52:51 +0000
Subject: RE: [PHP] Alternate row color
Groups: php.general 
Request: Send a blank email to php-general+get-11010@lists.php.net to get a copy of this message
Nice!!! $Colors = array( '#ffffff', '#000000' [, 'more-colors' ] ); $I = 0; while( conditions ) { print "<tr color=" . $Colors[ $I ++ % count( $Colors ) ] . ">"; }

« previous php.general (#11010) next »