|
-
Jul 9th, 2006, 09:44 PM
#1
Thread Starter
Addicted Member
[RESOLVED] Complex Question
Hello
I have some names in my database.
And I want to show them in pages not single page (by using PHP) and each page contains 500 names only.
So, there will be (n) pages.
Example: If I have 2600 names, there will be 6 pages (Page 6 will contain 100 names only).
The question is: how can I know number of pages (n) if the number of names is indivisible to 500? (such as 2600-2650-2700... and more).
If the number of names is divisible to 500 (such as 2500), n=2500/500=5 pages (it's very simple).
Anybody help me, please.
If anybody didn't get it, I'll explain more.
Thanks & Regards
-
Jul 10th, 2006, 12:17 AM
#2
Re: Complex Question
You need to have a look into pagination. There is an example and function in the thread below:
http://www.vbforums.com/showthread.p...51#post1988751
-
Jul 10th, 2006, 12:22 AM
#3
Thread Starter
Addicted Member
Re: [RESOLVED] Complex Question
Thanks
It's a good example.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|