Re: Paging db results
| From: | George Pitcher | Date: | Thu, 06 May 2004 13:13:18 +0000 |
| Subject: | Re: Paging db results | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-11363@lists.php.net to get a copy of this message | ||
Hi,
No answers to this morning's query so after doing a bit of digging around
the archive and the manual, I reckon my best bet (correct me if I'm wrong)
would be to do my initial search and then store the results in a cookie (a
big one). I can see how I can read a cookie {$smartie.cookie.cookiename},
and also send and read the record number (in the recordset), but can I read
the cookie by record or should I be looking to handle that part in php? I
also need to be able to remove a record from the array (not necessarily the
first or last record so php's array_splice() would come in usefully for
that.
George
>
> Hi,
>
> I'm new to Smarty, having played around with it for a week now.
>
> I'm building a web version of a Filemaker database gui and I need
> to be able to produce paged results. These aren't the usual 10 or
> 25 rows per page, but 1 record per page, displaying around 60
> fields. The recordset could be as many as 6-700.
>
> Just to complicate matters, in addition to moving through the
> recordset I als want to be able to move between different
> functional pages, whilst remaining in the curent position of the
> original recordset. Ideally, this would not entail performing a
> SQL query each time I change layouts.
>
> I'm using PEAR DB to access MySQL and my development is based on
> Win2K/IIS5 but final deployment will be Linux/Apache.
>
> Any tips, suggestions or advice would be welcome.
>
> George in Oxford