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