creat CSS style,
<style type="text/css">
<!--
.gray {
background-color: #CCCCCC;
}
-->
</style>
in the while cycle check the rowcounter:
$gray="gray";
$while="";
$style = ($numcolsprinted % 2) ? $gray : $white;
then print the TR tag like this:
print "<tr class=\"$style\">";
You're thinking of this?
Hello, jjozsi.