$x = 'BGCOLOR="#990099" ALIGN="center" VALIGN="middle" BORDER="0"'; $y = 'BGCOLOR="#CC33FF" ALIGN="left" VALIGN="middle" BORDER="0"'; $tr = 11; ?>
for ($i=1; $i<$tr; $i++) { $tr_spec = ($i % 2) ? $x : $y; ?>
>
if($i % 2) { ?>
Table Row Specification
} else { ?>
echo $tr_spec; } ?>
} ?>