Gossamer Forum
Home : Products : DBMan SQL : Discussion :

Re: [timbo] home made queries

Quote Reply
Re: [timbo] home made queries In reply to
Yes, you can use the template global feature for this matter like:

sub {
my $results = $DB->table('table_name')->select()->fetchall_hashref;
return { loop_interface => $results }
}

And then it can be called in your html code:

<%template_global_name%>
<%loop loop_interface%>
<%field1%>
<%field2%>
.....
<%endloop%>

TheStone.

B.
Subject Author Views Date
Thread home made queries timbo 3376 Aug 23, 2003, 2:44 AM
Thread Re: [timbo] home made queries
604 3262 Aug 25, 2003, 3:22 PM
Post Re: [TheStone] home made queries
timbo 3225 Aug 28, 2003, 1:05 PM