Hi guys,
Thanks for your helps. As the final answer to my question, I am using:
[% query = DBI.prepare("SELECT * FROM contacts WHERE account_code = '$ +{row.account_code}'") %] <tr><td><b>Pref Add</b></td><td><select id='pref_add'> [% FOREACH contacts = query.execute() %] <option value="[% contacts.contact_id %]">[% contacts.contact_title %] + [% contacts.contact_forename %] [% contacts.contact_surname %] At: [ +% contacts.contact_address1 %] [% contacts.contact_postcode %]</optio +n> [% END %] </select> </td></tr>
WORKS GREAT,
Thanks to all you guys.In reply to Re: How to use template toolkit variable in a template toolkit mysql query
by hamidafshar
in thread How to use template toolkit variable in a template toolkit mysql query
by hamidafshar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |