in reply to Re^3: 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

Absolutely greatful *Your Mother*, *CountZero* and *Chromatic*. Below worked for me:
[% FOR row IN rows %] [% query_str = "SELECT * FROM contacts WHERE account_code = ${row.acco +unt_code}" %] [% END %]
I had tried this previously but did not use double quotes - duhhhhhhhhh :-|. Thanks alot you guys.
  • Comment on Re^4: How to use template toolkit variable in a template toolkit mysql query
  • Download Code