For Programmers: Free Programming Magazines  


Home > Archive > PHP Smarty Templates > May 2004 > Re: [SMARTY] Re: Paging db results









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [SMARTY] Re: Paging db results
Katana

2004-05-07, 6:49 am

> 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.

I think you should use session vars rather than cookies... and they can
be read the same way from smarty (even if it's not really the best
method, since application logic should remain in the PHP code and not be
moved to the template code).

Katana
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com