[Solved] Change of td color with php if else statement [closed]


$mydate = "2015-10-01";
if(strtotime($mydate) > strtotime(date('Y-m-d')))
{
    echo "<td style="background-color:green;">testing</td>";
}
else
{
   echo "<td>testing</td>";
}

1

solved Change of td color with php if else statement [closed]