title: alternating row colours with 3 different background
body: <p>Instead of 2 rows, which i am currently able to produce, I need a way to alternate between 3 colours for the table rows.</p>
  
  <pre><code>    &lt;style type="text/css"&gt;
      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;
  
      }
      &lt;/style&gt;
  
  for($i =0; $i ...){
  
  $rowclass = 0;
  &lt;tr class="d&lt;?php echo $rowclass; ?&gt;"&gt;
  
  &lt;/tr&gt;
  
  $rowclass = 1 - $rowclass;
  
  }
  </code></pre>