PHP Script Echo New Symbol From New articles

<?php
$last1 = strtotime("-2 months");
$last = date("Y-m-d", $last1);
//echo $last;
if($row_articles['date']>$last)
echo "<img src=\"images/new.gif\" width=\"30\" height=\"28\" hspace=\"1\" align=\"absmiddle\"  border=\"0\" />";
else
echo "<img src=\"images/image9.png\" width=\"16\" height=\"16\" hspace=\"3\" border=\"0\" align=\"texttop\" />"; ?>
<?php echo $row_articles['title'];  ?>

Leave a Reply