title: Change background color of TD
body: <p>I want to change my background color for one of the rows if one value is bigger than the other.</p>
  
  <p>I tried using jQuery to change the color but it  changes the color for every row.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>while ($row = mysqli_fetch_assoc($result)) {
  
      echo'&lt;tr&gt;';
      echo'&lt;td&gt;'.$row['id'].'&lt;/td&gt;';
      echo'&lt;td style="width:25%"&gt;&lt;a href="calendarevent.php?   EventId='.urlencode($row['id']).'"&gt;'.$row['date'].'&lt;/a&gt;&lt;/td&gt;';
      echo'&lt;td class="starttime"&gt;'.$row['start'].'&lt;/td&gt;';
      echo'&lt;td class="finishtime"&gt;'.$row['finish'].'&lt;/td&gt;';
      echo'&lt;td&gt;'.$row['total'].'&lt;/td&gt;';
      echo'&lt;td&gt;'.$row['cash'].'&lt;/td&gt;';
      echo'&lt;/tr&gt;';
  
      $start =$row['start'];
      $finish = $row['finish'];
      if ( $start&lt;$finish ) {
         //CHANGE BACK GROUND COLOR FOR finish time to red 
      }else{
        //Keep the color as it was
      }
  
  }
  </code></pre>