[PHP] Alternating Row Colors in PHP........

2003-02-08 Thread CF High
Hey all. I'm coming from Cold Fusion to PHP; in CF I could alternate rows with the following: tr bgcolor=###Iif(((CurrentRow MOD 2) is 0),de('FF'),de('EE'))# Any ideas how to do this in PHP? Thanks for clues, --Noah -- -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Alternating Row Colors in PHP........

2003-02-08 Thread olinux
Pop this in your loop $bgcolor = ($i++ % 2) ? '#FF' : '#EE'; echo tr bgcolor=\$bgcolor\; olinux --- CF High [EMAIL PROTECTED] wrote: Hey all. I'm coming from Cold Fusion to PHP; in CF I could alternate rows with the following: tr bgcolor=###Iif(((CurrentRow MOD 2) is

Re: [PHP] Alternating Row Colors in PHP........

2003-02-08 Thread Chris Hayes
At 00:25 9-2-2003, you wrote: Hey all. I'm coming from Cold Fusion to PHP; in CF I could alternate rows with the following: tr bgcolor=###Iif(((CurrentRow MOD 2) is 0),de('FF'),de('EE'))# Any ideas how to do this in PHP? one way would be: ?PHP $color_toggle=true; $color1='red';

Re: [PHP] Alternating Row Colors in PHP........

2003-02-08 Thread Noah
Thanks olinux. Just what I was looking for -- I'll check it out. -Noah - Original Message - From: olinux [EMAIL PROTECTED] To: CF High [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Saturday, February 08, 2003 12:45 PM Subject: Re: [PHP] Alternating Row Colors in PHP Pop

Re: [PHP] Alternating Row Colors in PHP........

2003-02-08 Thread Brian V Bonini
On Sat, 2003-02-08 at 18:25, CF High wrote: Hey all. I'm coming from Cold Fusion to PHP; in CF I could alternate rows with the following: tr bgcolor=###Iif(((CurrentRow MOD 2) is 0),de('FF'),de('EE'))# Any ideas how to do this in PHP? One possibility: while (whatever) {