At 4:18 PM on 22 Mar 2010, dark0s wrote:
> I have the following tt2/html code:
>
> [% USE DBI('dbi:mysql:netstore','root','Saverio') %]
> [% query = "SELECT * FROM projects WHERE NameProject = $project" %]
> [% query %]
> [% pdata = DBI.prepare($query) %]
^
Don't use the dollar sign here.In TT, dollar signs are used for dereferencing. query is not a reference, so you don't get anything. -- C. Chad Wallace, B.Sc. The Lodging Company http://www.lodgingcompany.com/ OpenPGP Public Key ID: 0x262208A0
signature.asc
Description: PGP signature
_______________________________________________ templates mailing list [email protected] http://mail.template-toolkit.org/mailman/listinfo/templates
