Gossamer Forum
Quote Reply
All Links global
Hi

I am trying to come up with a globlal that will return a list of all links:

sub {
# Displays all links.
my ($output,$sth,$link);
my $search_db = $DB->table('Links');
$sth = $search_db->select ( { isValidated => 'Yes' });
while ($link = $sth->fetchrow_hashref)
$output .= Links::SiteHTML::display ('link', $link);
}
return $output;
}

And I am getting Unable to compile 'all_links':

Alo trying to do the same to return a list of all categories in the database including the more pages...

Can some one help please..
Regards
KaTaBd

Users plug In - Multi Search And Remote Search plug in - WebRing plug in - Muslims Directory
Quote Reply
Re: [katabd] All Links global In reply to
Hi,

You miss a bracket after while(){}.

sub {
# Displays all links.
my ($output,$sth,$link);
my $search_db = $DB->table('Links');
$sth = $search_db->select ( { isValidated => 'Yes' });
while ($link = $sth->fetchrow_hashref) {
$output .= Links::SiteHTML::display ('link', $link);
}
return $output;
}
Quote Reply
Re: [Beck] All Links global In reply to
Ok.. Thanks

That works
Regards
KaTaBd

Users plug In - Multi Search And Remote Search plug in - WebRing plug in - Muslims Directory