Re: Alternate colors

From: Date: Wed, 14 May 2003 01:21:24 +0000
Subject: Re: Alternate colors
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-147535@lists.php.net to get a copy of this message
you can try this <table> <? for ($test=0;$test<=10;$test++){ $a++; if (($a%2)==0){ $bcolor="red"; }else{ $bcolor="blue"; } print "<tr bgcolor=$bcolor><td >&nbsp;</td></tr> "; } ?> </table> ----- Original Message ----- From: "Aris Santillan" <aris@femalenetwork.com> To: "Php (E-mail)" <php-general@lists.php.net> Sent: Wednesday, May 14, 2003 8:48 AM Subject: [PHP] Alternate colors hi im querying data from database fetching all the rows in it. how can i display it in html with an alternate colors in the rows!!!

« previous php.general (#147535) next »