On 20/10/2007, Matthew Weier O'Phinney <[EMAIL PROTECTED]> wrote:
>
> -- Truppe Steven <[EMAIL PROTECTED]> wrote
> (on Saturday, 20 October 2007, 04:19 AM +0200):
> > is there some method to fetch an interval of zend_db_rowset objects from
> > an zend_db_table for pagination ? or do i need to write it on my own ?
> > so i can for example fetch all items with id from 1 to 10 or 10 to 20
> > and so on.
>
> The fetchAll() method allows you to pass a $count a $offset parameter:
>
>     fetchAll($where = null, $order = null, $count = null, $offset = null)
>
> Use those parameters when you want to do paging.


Also see http://www.assembla.com/wiki/show/riskle/Pagination_Component

--
> Matthew Weier O'Phinney
> PHP Developer            | [EMAIL PROTECTED]
> Zend - The PHP Company   | http://www.zend.com/
>



-- 
Vincent

Reply via email to