Spilting News to pages

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Blondy
Forum Commoner
Posts: 32
Joined: Thu Mar 06, 2008 5:55 pm

Spilting News to pages

Post by Blondy »

hi guys
I have a page that has lots of news headline,
& I want to spilt them into pages just like forums do with the topics
any help will be regarded
my main problem is with mysql syntax.
thanks
User avatar
yacahuma
Forum Regular
Posts: 870
Joined: Sun Jul 01, 2007 7:11 am

Re: Spilting News to pages

Post by yacahuma »

are you talking about a master -details
where the master will be the list of news a the detail the news itself? That how it is in this forum
JacobT
Forum Commoner
Posts: 43
Joined: Tue May 13, 2008 11:07 am
Location: Los Angeles, CA

Re: Spilting News to pages

Post by JacobT »

Hey Blondy, this is called pagination. It's taking a large number of results and breaking them down into smaller chunks and displaying them on pages.

There's a very good beginner's tutorial that I found here. Unfortunately pagination is a little too involved to teach from scratch here.

http://biorust.com/index.php?page=tutor ... &tutid=103
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: Spilting News to pages

Post by pickle »

Search these forums for 'pagination' too - this has been asked many times before.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Blondy
Forum Commoner
Posts: 32
Joined: Thu Mar 06, 2008 5:55 pm

Re: Spilting News to pages

Post by Blondy »

thanks guys
Post Reply