title: Table tr background color change
body: <p>I'm trying to make in sort that odd <code>&lt;tr&gt;</code> and even <code>&lt;tr&gt;</code> have different color for easier reading.</p>
  
  <p>Here's my code:</p>
  
  <pre><code>$show_res = mysql_query($show_query);
  while ($show_row = mysql_fetch_assoc($show_res)){
  $rc++;
  if (($rc &gt; 1)){
      $tr = '#cccccc';
  } else {
      $tr = '#ffffff';
  }?&gt;
    &lt;tr style="background-color:&lt;?php echo $tr ;?&gt;"&gt;
  </code></pre>
  
  <p>It doesn't work, am I missing something?</p>