Gossamer Forum
Quote Reply
Global doesnt works!
Hi, my global should read out from the actual URL the parameter "Ausgabe" and should place a select to list the Links, that has "Ausgabe = x".

Code:
sub {
# Displays the newest links on the home page.
my ($output,$sth,$link);
my $search_db = $DB->table('Links');
my $ausgabe = $IN->param('Ausgabe');
$search_db->select_options ('ORDER BY Add_Date ASC Limit 20');
$sth = $search_db->select ( { Ausgabe => '$ausgabe' });
while ($link = $sth->fetchrow_hashref) {
if (length $link->{Title} > 200) {
$link->{Title} = substr($link->{Title}, 0, 20) . '...';
}
$output .= Links::SiteHTML::display ('link', $link);
}
return $output;
}
Why it doesnt works?
Without my Ausgabe-Lines the global works very fine! It is from katabd!

Thanks in advance for your help!

Coyu
Subject Author Views Date
Thread Global doesnt works! Coyu 1747 Jan 23, 2005, 8:11 AM
Post Re: [Coyu] Global doesnt works!
pugdog 1706 Jan 23, 2005, 9:35 AM
Thread Re: [Coyu] Global doesnt works!
Andy 1690 Jan 24, 2005, 1:17 AM
Post Re: [Andy] Global doesnt works!
Coyu 1682 Jan 24, 2005, 3:34 AM