You are here: Re: the function to switch values ie for alternating between 2 colors in table display « PHP Programming Language « IT news, forums, messages
Re: the function to switch values ie for alternating between 2 colors in table display

Posted by frothpoker on 07/12/06 12:50

I prefer

$linestyle = 1

While (criteria)
{
.......
$lineclass = "lineclass" . $linestyle;
<TR class = $lineclass><TD></TD></TR>;

$linestyle = 1 - $linestyle;
}

and set up two classes called lineclass0 and lineclass1

personally I think it is easier to read and control.

 

Navigation:

[Reply to this 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

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