Reply to Re: the function to switch values ie for alternating between 2 colors in table display

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация