Hi guys,

I want to print out a table consisting on an unknown amount of rows (based on a select query) and I want every second row to have the same colour. I was thinking that it would be a good idea to have an $i adding one for each result from the SELECT query, and then set the colour based on whether the $i was 2,4,6,8,10 or 1,3,5,7,9. But how can I determine this without having to write a huge if block?

Thanks in advance !