> -----Original Message----- > while(foo){ > $tr = (0 == $trColor % 2)? "#E8E8E8" : "#FFFFFF"; > echo "<tr style=\"background-color:".$tr."\">"; > ... Don't do this modulus (%) math!!!! Just toggle a boolean!! <tr class="<?= ($r = !$r) ? "dataRow1" : "dataRow2"; ?>">
<<attachment: smime.p7s>>