I have a time and and a current time stamp,
I want to do a check, if the lastdatestring is within a hour show darkred, if withing 6 hours red.. otherwise show it as blue
What;s wrong with this code??
$diff = $nowtime - $row['lastdatestring'];
if ($diff > 21600) {
echo "<img src='http://www.nn.com/images/blue.gif'>";
} elseif ($diff > 3600) {
echo "<img src='http://www.nn.com/images/darkred_hot.gif'>";
} else {
echo "<img src='http://www.nn.com/images/red.gif'>";
}