On Sun, 2005-12-04 at 13:38 -0500, Ron Piggott (PHP) wrote:
I have two questions.
I would like to display the contents of my table with the first row
being grey in background and the next row being white and the third row
being grey, fourth being white, etc. I am not sure how to do this.
There's a couple of ways to do this. For the row color you would set that
as you looped through the returned rows. Using the pear db class:
$count = 0;
echo table\n;
while($db-fetchInto($data)) {
$count++;
if($count % 2 == 0) {
$bgColor =