Some help would be great.
I'm trying to access the last 5 articles in my MYSQL database with PHP and I need code that will allow me to find the 5 most current articles (I have that code already.) but that will also calculate which is the newest (or which 2 are the newest) and will automatically add a small image NEW two spaces are the link to the article.
Right now, all I can do is list the 5 articles with a default NEW coded into each listing. I'm sure it's something to do with an IF ... THEN ... ELSE thing but I can't figure it out. I'd like to do this on an archive page too with say 25 links per page with the top 3 listed as NEW links.
Any help would be appreciated.