Re: Pager_Sliding using strings?

From: Date: Fri, 25 Jul 2003 17:12:25 +0000
Subject: Re: Pager_Sliding using strings?
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-6825@lists.php.net to get a copy of this message
Lorenzo Alberton wrote:
On Thu, 24 Jul 2003 15:39:23 +0100, Davey wrote:
Hey, I'm trying to setup a pager using Pager_Sliding that instead of using ints uses strings as the page ids... So for example, I have this array of names: $names[0] = "John Doe"; $names[1] = "Davey Shafik"; $names[2] = "Joe Bloggs"; and I want this pager: << <a href="pager.php?entrant=John%20Doe">John Doe</a> | <b>Davey Shafik</b> | <a href="pager.php?entrant=Joe%20Bloggs">Joe Bloggs</a> >> Is this possible?
I fear not. But if you can elaborate this a bit more, maybe I could understand what you want to do and how you're trying to do it, and give you a better answer. My guess however is that your design decisions could be somewhat different, because you're trying to use a Pager for something it wasn't designed for. Please let me know what you want to do *exactly* (the more details, the better). Best regards, Lorenzo
Lorenzo, What I have is a database with contestants in it, what I want is a slide show of the contestants details, and I want the links to be the contestants names, not their page number/database id. Note that the not all contestants are in every competition and therefore their numbers are not sequential I'm gonna play with the getPageData method, see what I can do :) - Davey

« previous php.pear.general (#6825) next »