RE: [SMARTY] Paging - a side note

From: Date: Thu, 12 Dec 2002 23:11:59 +0000
Subject: RE: [SMARTY] Paging - a side note
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-6790@lists.php.net to get a copy of this message
I use the datapager class from phpclasses.org. (http://optip.mirrors.phpclasses.org/browse.html/package/540.html) I modified it a little bit, but it works great for me. If you need details on how to use it, I can post. -----Original Message----- From: Yrjö Mäenpää [mailto:yrjo.maenpaa@dlc.fi] Sent: Thursday, December 12, 2002 11:18 AM To: smarty-general@lists.php.net Subject: [SMARTY] Paging - a side note Pagination is indeed an interesting topic. The suggestions I have read all seem to depend on knowing the row count of the query result. I have a database of about 1.5 million records and i have to paginate complex search results. If I were to use num_rows or count(*) first, my searches would far too slow. So I have to use limit (with offset and rows) and to get only 20 matching record at the time not knowing how many there will be. If someone (Ben Phillips him self perhaps) would write a plugin to this kind of a situation, at least I would be very happy (regardles of where the logic is :) greetings, Yrjo

« previous php.smarty.general (#6790) next »