Sorry, forgot about the time.
This is 100% Working to the second.
24H after the posting, displays >24 hours, you can remove this.
Regards
Ian
<html>
<body>
<?php
$postingdate = mktime (1,38,0,1,12,2003);
/ Replace $postingdate with you $row[3] /
/ Try changing the posting date H,M,S,Months,Days,Years /
/ I have tried this on my server and it works, are you sure $row[3] contains a unix date\time int Stamp. /
/ It does not look very nice, but it is the best i can do, i have only being coding PHP 1 week /
/ This works for me /
if($postingdate > mktime (date("H"),date("i"),date("s"),date("m") ,date("d")-1,date("Y"))):
$posted = "New!";
else:
$posted = ">24 Hours Old";
endif;
echo "<br>Server Date & Time: ", date("Y-m-d H:i:s");
echo "<br>Posting Date & Time: ", date("Y-m-d H:i:s",$postingdate);
echo "<br>$posted";
?>
</html>
</body>