Hi,
I have the following bit of code that should give the row a backround colour of red if the target date has passed.
$today = gmdate ("Y/m/d", mktime (1,1,1998));
$target = $row->targetdate;
if ((!empty($target)) || ($target == "0000-00-00") || ($target == "NULL"))
{
if ($today > $target)
{
$col = "#ff0000";
}
}
Except it makes the line red even if the due date hasn't passed??
I don't understand it, the > is definately the right way round, which is my usual mistake?
Any ideas?