number of 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
hrubos
Forum Contributor
Posts: 172
Joined: Sat Oct 07, 2006 3:44 pm

number of pages

Post by hrubos »

Dear all

I want to output from database and I have many rows, I want to share it automatic follows number of pages
So, who would mind showing me how to do or scripts or code about it???

Thank you very much
User avatar
aaronhall
DevNet Resident
Posts: 1040
Joined: Tue Aug 13, 2002 5:10 pm
Location: Back in Phoenix, missing the microbrews
Contact:

Re: number of pages

Post by aaronhall »

hrubos wrote:I want to share it automatic follows number of pages
What does that mean?
hrubos
Forum Contributor
Posts: 172
Joined: Sat Oct 07, 2006 3:44 pm

Post by hrubos »

If I have many rows, my page on which atribut is outputted, will so long.So I'd like that in my page maybe outputted 20 rows, then change to new pages,....and finish when all of atribut will be outputted.
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Post by pickle »

I think what you're looking for is pagination. If you have 2000 rows, for example, you want to show only 20 rows per page, but have 100 rows.

If this is the case, do a search for 'pagination' either in Google or on the forums here - this has been answered lots before.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
hrubos
Forum Contributor
Posts: 172
Joined: Sat Oct 07, 2006 3:44 pm

Post by hrubos »

yeah, it is right

I will try search with this key

Thank you in your advice !!!
Post Reply