News Help

  • Sk8erGuy
  • Student
  • Student
  • Sk8erGuy
  • Posts: 74

Post 3+ Months Ago

I've been working on some scripts of mine for a while. I have a login, edit profile and other little things here and there. Now, what i want to do is make a news system. I know how to have the members post the news and all but i only want the page to display 5 news post because the posts are going to be on the index page. So what i need is something that will only allow 5 posts on the page then put the other posts on say news2.php. Any help would be cool.
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Cafu
  • Student
  • Student
  • Cafu
  • Posts: 97

Post 3+ Months Ago

I am assuming you are using MySQL and are putting the news stories in a table:


Use
Quote:
LIMIT 5
in your query and
Quote:
order by article_date desc


assuming you have a timestamp or date field called article_date

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 112 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.