title: Change of td color with php if else statement
body: <p>I want to change color of my td as per the date received from the sql query. Please help with following -</p>
  
  <p>I want to change the color of td to green if the fetched date is less than today's date.</p>
  
  <pre><code>&lt;?php
      if($mydate &gt; date('d-M-Y'))
      {
          echo "&lt;td style="background-color:green;"&gt;";
      }
      else
      {
         echo "&lt;td&gt;";
      }
  ?&gt;
  </code></pre>