On Thu, 15 Apr 2004 16:02:14 -0400
"Montagna, Dan" <[EMAIL PROTECTED]> wrote:

>  
> I'd appreciate any hints on this...
>  
> Thanks
>  
> Dan

I created a function (so I don't have to rewrite it all the time)
for doing this very thing.  

function everyOtherRow($i, $oddColor = '#e0ffff', $evenColor =
'white') {
        if ($i % 2 == 0) {
                # even numbered row color
                $color = $evenColor;
        } else {
                # odd numbered row color
                $color = $oddColor;
        }
        
        return $color;
}


-- 
Raquel
============================================================
A life isn't significant except for its impact on other lives.
  --Jackie Robinson

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to