On Wed, Mar 19, 2008 at 12:01 PM, It Maq <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am working in page breaking (dividing the result of
> a select query in multiple pages).
It's more commonly referred to as "pagination." You'll get more
accurate results with the proper terminology.
> Now my problem is not with the php code, but with the
> algorithm that organize the links to the pages. I want
> to do something like google, the pages numbers at the
> bottom of the page must not exceed a maximum number,
> the actual page must be in the center of the links to
> other pages and there are a lot of other conditions
> that arise.
If I'm understanding you correctly, all you'll need are a few
if/else conditions, some range math, and some LIMIT conditions in your
SQL query.
> Do you know about a site that describe these
> conditions or may be propose the whole algorithm for
> that?
STFW. ;-P
http://www.google.com/search?q=php+pagination+like+Google
The top two results look like they hit the nail right on the head for you.
--
</Daniel P. Brown>
Forensic Services, Senior Unix Engineer
1+ (570-) 362-0283
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php