Re: Two color rows in table inside while iteration

From: Date: Wed, 28 Apr 2010 11:38:25 +0000
Subject: Re: Two color rows in table inside while iteration
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-304713@lists.php.net to get a copy of this message
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.

« previous php.general (#304713) next »