Mark every other row differently
I got stuck when wanting to display a soccer calendar on a website. There are 30 games per season and I would like every other row to have a light grey background color. Now my question is, is that possible with PHP? I guess it has got something to do with a counter or something.
Below a quick example of how that table would look like with of course the <tr> element getting a repeat region for as many records as there are in the recordset.
Thanks!
<table>
<tr>
<td>Date</td><td>Team 1 vs. Team 2</td><td>Result</td>
</tr>
</table>
