> -----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
Description: S/MIME cryptographic signature

Reply via email to