I am using PHP and I am iterating a table with a result array ... I want to add row color and alternate row color to it.... How to do so? Any suggestion...
SelectQuery(); $ID = $i; $i = 1; ?> ID NAME DESCRIPTION ' . $row["ID"] . '' . $row["Name"] . '' . $row["Description"] . '' . "\r\n"; $i++; }else{ # An even row $rowColor = "green"; echo '' . $row["ID"] . '' . $row["Name"] . '' . $row["Description"] . '' . "\r\n"; $i++; } } ?>