* 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php