I have table for tasks list.
how can I create condition for dates?
I want to give red color for tasks that their targerDate are in 2 days or less.
$mainQuery = mysql_query("SELECT * FROM `tasks `");
while($mainIndex = mysql_fetch_array($mainQuery))
{
if ($mainIndex['tagertDate'] <= ???)
}
sql table:
id int(10)
title varchar(250) utf8_general_ci
targetDate date