Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Select one link via global

Quote Reply
Select one link via global
Hello,

i try to select one link with a global like this:

sub {

my $linkid = $IN->param('linkid');
my $link_db = $DB->table('Links');
my $sth = $link_db->select ({ID => $linkid, isValidated => 'Yes' });

my $output;
while (my $link = $sth->fetchrow_hashref){
$output .= Links::SiteHTML::display ('link', $link);
}

return $output;
}

and use
<%tipp_of_the_day($linkid,'43')%> in template but
get no result.
can anyone help me please?

Sör
Subject Author Views Date
Thread Select one link via global Sör 2204 Oct 30, 2006, 4:56 AM
Thread Re: [Sör] Select one link via global
tandat 2125 Oct 30, 2006, 7:51 PM
Post Re: [tandat] Select one link via global
Sör 2102 Nov 3, 2006, 8:20 AM
Post Re: [tandat] Select one link via global
Andy 2083 Nov 7, 2006, 7:01 AM