in reply to Re: How to use template toolkit variable in a template toolkit mysql query
in thread How to use template toolkit variable in a template toolkit mysql query
Unfortunately no. Or maybe I am doing it not the right way.
Here is a brief example of what I am needing to do and achieve:
[% FOREACH row IN rows %] [% query_str = 'SELECT * FROM contacts WHERE account_code = [% row.acc +ount_code %]' %] [% END %]
I did change [% row.account_code %] with ${row.account_code} but nothing useful happened. Do also have in mind that [% row.account_code %] will need to be wrapped in quotes as it is a string.
Thanks for the helps, please keep them coming! :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How to use template toolkit variable in a template toolkit mysql query
by Your Mother (Archbishop) on May 04, 2011 at 23:06 UTC | |
by hamidafshar (Novice) on May 05, 2011 at 06:51 UTC | |
by hamidafshar (Novice) on May 05, 2011 at 06:54 UTC |