How can I change the different color of date if the date in the database is greater than today's date. In Picture, U can see the date under 002 is greater than today's date so the color must be green. If less tha toda's date, it has to be red. How can I do auto detect the date?
$type = $equipArray[$x];
$sql = "SELECT * FROM map_db_oee.`tbl_actual_correlation` WHERE `waferid` LIKE 'NSX1234%' AND prober=' '".$type."' ORDER BY dt_cor DESC LIMIT 1'";
$result = mysqli_query($conn, $sql);
if (mysqli_num_rows($result) > 0) {
$row = mysqli_fetch_array($result);
$date = "<br><font size=\"2px\" color=\"red\">".$row["dt_corr"]." </font>";
}
else {
$date = "";
}