Re: [SMARTY] using smarty with databases

From: Date: Sat, 19 Oct 2002 14:51:06 +0000
Subject: Re: [SMARTY] using smarty with databases
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-6194@lists.php.net to get a copy of this message
> I am was wondering what I have to do, to be able to get Smarty to show > all my records in the template? 1) You do a query in your php code, make a big array with all the results and assign them to a template. Then you use 'section' or 'foreach' in the template to loop trough the values. 2) Look in the archives of this mailing list, there have already been two major discussion on the best way to do this. Some people actually seen to assign a query handle to the template and use that to get all the tuples from the database. Manfred

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