Misleading API documentation for DB_Pager

From: Date: Tue, 16 Jul 2002 11:09:06 +0000
Subject: Misleading API documentation for DB_Pager
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-7742@lists.php.net to get a copy of this message
The API documentation for DB_Pager::getData is misleading: "'lastpage' => X, // the row number where the last page starts" stands in contradiction to the code, where lastpage is the result of "ceil($numrows/$limits)". This operation actually calculates the number of pages for the result set, but it does *not* calculate the number of first row that is display on the last page. - Martin

« previous php.pear.dev (#7742) next »