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
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
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';
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
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) {
5 matches
Mail list logo