RE: [PHP] Returning Rows Question
| From: | Mike richardson | Date: | Wed, 04 Sep 2002 23:03:44 +0000 |
| Subject: | RE: [PHP] Returning Rows Question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-115242@lists.php.net to get a copy of this message | ||
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