Re: Two color rows in table inside while iteration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 4/28/10, Juan Rodriguez Monti wrote:
> I would like to implement a two color row table for some queries that I'm
> doing.
...
> what do you suggest to do a two color row format.

Well, I wouldn't mix the presentation and querying of the db in one
place, but assuming that's just a simplified example... I'd just set
each <tr> style name to something relevant declared in your CSS.
Alternating rows getting style names like "odd", and "even", which are
declared in CSS to display in different colours, or whatever.

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux