Re: DB_Pager doesnt work with MDB

From: Date: Tue, 04 Jan 2005 08:53:52 +0000
Subject: Re: DB_Pager doesnt work with MDB
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-16578@lists.php.net to get a copy of this message
Justin Patrin wrote:
On Tue, 4 Jan 2005 18:13:42 +1100, electroteque <daniel@electroteque.org> wrote:
Hi list, I am having issues getting DB_Pager to work with MDB, also how can I get pager to work with proper paging like page=2 and it calculate it rather than programatically calculating the start and limit to give to limitQuery ? Will I have to create a subclass to do this ?
DB_Pager doesn't work with MDB because MDB is not DB. Check the examples for pager. There's one which does paging with DB that you should be easily able to alter for MDB.
no need to alter anything: there's an example with each pear DBAL (DB, MDB and MDB2): http://cvs.php.net/co.php/pear/Pager/examples/Pager_Wrapper.php HTH -- Lorenzo Alberton http://pear.php.net/user/quipo

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