Re: {section} question

From: Date: Wed, 28 Feb 2001 17:46:01 +0000
Subject: Re: {section} question
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-241@lists.php.net to get a copy of this message
Yes, I definitely agree. I don't want SQL in templates. What I was thinking of, is your beatiful simple example sent to the list in the end of January (let me quote a part of it): $sql->query("select firstname,lastname from users",SQL_ALL); $smarty->assign($sql->record); You used "your" database class (require("MySQL.class.php");). Is something like that possible today using PEAR class? Maciek > -----Original Message----- > From: mohrt@ispi.net [mailto:mohrt@ispi.net]On Behalf Of Monte Ohrt > Sent: Wednesday, February 28, 2001 4:39 PM > To: muhlig@us.edu.pl > Cc: Andrei Zmievski; smarty@lists.ispi.net > Subject: Re: [smarty] Re: {section} question > > > Maciek Uhlig wrote: > > > > > > What I'd really like (OT), is the ability of simple fetching data from > > database using PEAR database class. [stuff deleted] > SQL > queries are a definate no-no. [stuff deleted]

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