Re: PHP Data cache ideas/solutions

From: Date: Wed, 29 Sep 2004 09:44:27 +0000
Subject: Re: PHP Data cache ideas/solutions
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-198166@lists.php.net to get a copy of this message
* and then Niklas Ojala declared.... > I am looking for a class or some samples that would read a table from mysql > and store it in an array variable, so that it will be avilable to other > parts of the page without having to get it from the database again. So I > would like to only get the table once per page load but I must be able to > filter the table to get the data that I want. > > I am looking for some similar code to get me started or other ideas on how > to make less queries to the database. It may be a little 'overkill' for this particular example but it'll work, and it'll help you keep code and presentation separte (which is a VERY good thing) - Take an hour or two to get to grips with the Smarty template engine: http://smarty.php.net Does exactly what you want and a whole bunch more ;-) ---- i wouldnt build a site without it... -- Nick W

« previous php.general (#198166) next »