Re: how to use Pager on an sql (Page pagination)

From: Date: Mon, 12 Jul 2004 06:42:24 +0000
Subject: Re: how to use Pager on an sql (Page pagination)
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-13648@lists.php.net to get a copy of this message
i got most of it, im not familiar on how can i display the $pagerData? I have tried.. to pass it via.. while ($pageData->fetchInto($row)) { .. } But error like "Call to a member function on a non-object" is showing up. > //After your query, take the result and pass it through a pager object; > > $pager = &new Pager($params); > $pageData = $pager->getPageData(); > $pagerLinks = $pager->getLinks(); > > Now $pagerData contains the result of the query and $pagerLinks > contains the links for the navigation. Notice that $params is a > variable. Its an array of paramters for pager. > -- Louie Miranda http://www.axishift.com

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