Posted by Geoff Berrow on 07/12/06 08:55
Message-ID: <1152692807.376022.27670@s13g2000cwa.googlegroups.com> from
monomaniac21 contained the following:
>
>What is the php function called which allows you to alternate between
>two values? I've completely forgotten it and my searches in php.net
>have not been fruitful!
There is a function?
I usually just do something like this
$rowstyle=($count%2!=1)?" style='background-color:#ddd'":"
style='background-color:#fff'";
$count++;
for each table row.
--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
[Back to original message]
|