PHP Loop - Only display the latest 3 news stories, even if theres 10 in MySQL?

  • Thread starter Thread starter Treasure Ireland
  • Start date Start date
T

Treasure Ireland

Guest
Can anyone give me the script to loop through mysql to pull the latest 3 news articles out? Also if there are 10 news stories for instance it will come up, after the 3 news stories, "More News".

Hope someone can help. Thanks in advance.
So that will select 3, but what if I want to select all the news so that I have a "More New" button to link to a page of all the news!

unless i just had a whole seperate page which does that for me and have a physical link in "More News" to that page!

What do you think?
 
Back
Top