Forum Moderators: coopster
set the background color then each time you create a new Row or Cell or whatever you are planning on changing check your color variable and switch it accordingly:
*this is ASP, you can get the idea
if background_color = "#123456" then
background_color = "#654321"
else
background_color = "#123456"
end if
*again in ASP sorry...
<table...>
<tr>
While (make sure there's data in the table)
...
<td>
cell data
</td>
...
if (check for a reason to end the row) then
</tr><tr>
end if
next
</tr>
</table>
It takes some tinkering when you start to put it together but that should give you a good start.