Jump to content

last 5 articles in a DB displayed on a page?


mathewjenkinson

Recommended Posts

Hi all,

Im trying to set up a small news site.

One of the features I would like is 'Recent news' where the last 5 created articles headline can be displayed along with a link to that article.

 

The DB has been set up with 'article_id', 'Article_name' etc. so I was thinking about basically working back words from the highest article number and displaying those 5. but I have no clue how I would go about doing that...

 

Anyone have any ideas?

Thanks

Mathew

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.