Re: displaying data from database

From: Date: Fri, 02 Nov 2001 21:16:55 +0000
Subject: Re: displaying data from database
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-1821@lists.php.net to get a copy of this message
On Fri, 02 Nov 2001, Monte Ohrt wrote: > Load them from the PHP script first, then call the template. > > $smarty = new Smarty; > > $db_vars = get_db_vars(); > > $smarty->assign("dbvars",$dbvars); > $smarty->display("index.tpl"); Alternatively, you can limit the rows you select from database based on the previous/next link info passed in by the template. -Andrei Complexity in the mind is not caused by learning; learning is caused by complexity in the mind. -- Steven Pinker

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