On Wed, 2009-09-30 at 12:59 +0200, Angelo Zanetti wrote: > > -----Original Message----- > From: Mert Oztekin [mailto:moztekin@xxxxxxxxxxxxxxxxxxxxx] > Sent: 30 September 2009 12:40 PM > To: 'Angelo Zanetti'; php-general@xxxxxxxxxxxxx > Subject: RE: Paging script > > Sorry but I dont understand what you mean. Can you be more specific? > > {1} 2 3 ... 12 (Startup / Total 12 pages) > When you click 7 > 1 ... 6 {7} 8 ... 12 > When you click 11 or 12 > 1 ... 10 11 {12} > > Do you mean something like this? > > > Hi Mert, > > Yes I mean exactly like you have it there, > > Regards > Angelo > > > I'd just code it yourself, the logic behind it is pretty simple. * The numbers 1 and 12 (the total) will always display * The page you are on will display the number to either side of it, unless that is 1 or 12 (the total) * If the page you are on is 2 or 11 (one less than the total) then add in '...' on either side of the middle block. Thanks, Ash http://www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php