This is NOT a Template Toolkit problem. You should really do some of your own debugging before sending it to the group.
You have a very basic syntax error. You are doing [% FOREACH row = ... %] but then calling [% column.Type %]. It should be [% row.Type %]. --drew -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of dark0s Sent: Monday, March 22, 2010 3:48 PM To: [email protected] Subject: Re: [Templates] problem with USE DBI I typed [% query = DBI.prepare('SELECT * FROM projects WHERE NameProject = ?') %] [% FOREACH row = query.execute(project); %] <tr><td>Project type: [% column.Type %]</td></tr> <tr><td>Project language: [% column.Language %]</td></tr> <tr><td>Project description: [% column.Description %]</td></tr> [% END %] but it return only three empty values. Where is a problem? _______________________________________________ templates mailing list [email protected] http://mail.template-toolkit.org/mailman/listinfo/templates
