Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: [NeedScripts.Com] Email All

Quote Reply
Re: [NeedScripts.Com] Email All In reply to
I would use a loop.

sub {
my ($rec) = @_;
my $name = $rec->{Username};
my $db = $DB->table ('Links');
my $sth = $db->select ( { 'LinkOwner' => $name });
my @links;
while (my $link = $sth->fetchrow_hashref){
push @links, $link;
}
return {Link_Loop=>\@links};
}

Then where you want the listings you can put

<%globalname%> - (whatever you call the global above)

<%loop Link_Loop%>

-----------
Listing # <%row_num%>
-----------
Title :: <%Title%>
Description :: <%Description%>
URL :: <%URL%>
Operating System :: <%OS%>

<%endloop%>
Subject Author Views Date
Thread Email All VishalT 1651 Aug 18, 2003, 11:58 AM
Thread Re: [NeedScripts.Com] Email All
afinlr 1603 Aug 18, 2003, 1:16 PM
Thread Re: [afinlr] Email All
VishalT 1583 Aug 19, 2003, 9:56 AM
Post Re: [NeedScripts.Com] Email All
afinlr 1578 Aug 19, 2003, 1:19 PM