PHP alternating colors
<pre>
  $dbc = mysql_connect('localhost','root','') or die (mysql_error());
  mysql_select_db('payroll') or die (mysql_error());
 $sql = &quot;SELECT * FROM employee ORDER BY employee_id DESC&quot;;

  $result = mysql_query($sql);

  while($row = mysql_fetch_array($result)) {

  echo &quot;
  &lt;tr&gt;
  &lt;td style=\&quot;padding-left: 20px; border-bottom: 1px solid #999; border-right: 1px solid #999;\&quot;&gt;&quot;.$row['first_name'].&quot; &quot;.$row['last_name'].&quot;&lt;/td&gt;
  &lt;td style=\&quot;text-align: center; border-bottom: 1px solid #999; border-right: 1px solid #999;  padding-top: 2px ; padding-bottom: 3px ;\&quot;&gt;&lt;input type=\&quot;button\&quot; name=\&quot;edit\&quot; value=\&quot;Edit\&quot; class=\&quot;selbtn\&quot;&gt;&amp;nbsp;&lt;input type=\&quot;button\&quot; name=\&quot;delete\&quot; value=\&quot;Delete\&quot; class=\&quot;selbtn\&quot;&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &quot;;

  }
</pre>

<p>I wanted to add an alternating color in the loop. what code should I add?</p>
