title: Alternating table row background colors on a dynamic table
body: <p>I have a table generated by a <code>foreach</code> loop.</p>
  
  <p>Before the loop, I create <code>$iteration = 0</code>. At the beginning of the loop it increments <code>$iteration</code>.</p>
  
  <p>Then I do this:</p>
  
  <pre><code>if($iteration % 2 == 0) { 
    $greyRow = 'css for a grey row'; 
  }
  </code></pre>
  
  <p>I've only three rows, at max, to test this with, but it seems that it greys the 2nd and 3rd row under the current rule, rather than only the second.</p>