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".
# 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
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;
}
Without my Ausgabe-Lines the global works very fine! It is from katabd!
Thanks in advance for your help!
Coyu