[PHP] Limits and php...

2003-10-07 Thread Payne
Hi,

I have been trying to understand how to write a simple code that will 
let me limit the number of  files view to 10 records, but I need to 
under how php can look at a number of records and then caculates how 
many pages it needs to show all records. Is there some sample code that 
shows how to calculate and how to show limits  0,5 5,10 so on and so on

Payne

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] Limits and php...

2003-10-07 Thread Jay Blanchard
[snip]
I have been trying to understand how to write a simple code that will 
let me limit the number of  files view to 10 records, but I need to 
under how php can look at a number of records and then caculates how 
many pages it needs to show all records. Is there some sample code that 
shows how to calculate and how to show limits  0,5 5,10 so on and so
on
[/snip]

search anywhere for 'paginating records', tutorials abound.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Limits and php...

2003-10-07 Thread Curt Zirzow
* Thus wrote Jay Blanchard ([EMAIL PROTECTED]):
 [snip]
 I have been trying to understand how to write a simple code that will 
 let me limit the number of  files view to 10 records, but I need to 
 under how php can look at a number of records and then caculates how 
 many pages it needs to show all records. Is there some sample code that 
 shows how to calculate and how to show limits  0,5 5,10 so on and so
 on
 [/snip]
 
 search anywhere for 'paginating records', tutorials abound.

oh.. pagination...

Here is some psudo advanced code, the output can be seen on my stats
pages.

http://zirzow.dyndns.org/html/php/code/paginate.php


Curt
-- 
List Stats: http://zirzow.dyndns.org/html/mlists/php_general/

I used to think I was indecisive, but now I'm not so sure.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php