Re: Returning Rows Question

From: Date: Wed, 04 Sep 2002 23:06:18 +0000
Subject: Re: Returning Rows Question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-115244@lists.php.net to get a copy of this message
Thanks. I will give it a shot. I have never seen anything written like that. Can you give me a brief explanation of what it means? Thanks again. ----- Original Message ----- From: "Mike richardson" <merichardson@mdausa.org> To: "'Christopher J. Crane'" <ccrane@inxdesign.com> Cc: <php-general@lists.php.net> Sent: Wednesday, September 04, 2002 7:03 PM Subject: RE: [PHP] Returning Rows Question > > While( .... ) { > ... > > $color = ($color == "FFFFFF")? "EAEAEA" : "FFFFFF"; > print "<td bgcolor='#$color'>\n"; > > ... > } > > -----Original Message----- > From: Christopher J. Crane [mailto:ccrane@inxdesign.com] > Sent: Wednesday, September 04, 2002 3:56 PM > To: php-general@lists.php.net > Subject: [PHP] Returning Rows Question > > > How do you alternate colors of the rows in a table inside a while > statement when dealing with the output of data from a DB. I am sure it's > something simple but I keep getting into some really long math thing... > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > >

« previous php.general (#115244) next »