Instead of 2 rows, which i am currently able to produce, I need a way to alternate between 3 colours for the table rows.
<style type="text/css">
tr.d0 td {
background-color: #FFFFFF; color: black;
}
tr.d1 td {
background-color: rgba(79, 129, 128, .2); color: black;
}
tr.d2 td {
background-color: rgba(119, 149, 60, .2); color: black;
}
</style>
for($i =0; $i ...){
$rowclass = 0;
<tr class="d<?php echo $rowclass; ?>">
</tr>
$rowclass = 1 - $rowclass;
}