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