Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: [katabd] newest links added question

Quote Reply
Re: [katabd] newest links added question In reply to
sub {
# Displays the newest links on the home page.
my ($output,$sth,$link);
my $search_db = $DB->table('Links');
$search_db->select_options ('ORDER BY ADD_DATE DESC Limit 4');
$sth = $search_db->select ( { isNew => 'Yes'});
while ($link = $sth->fetchrow_hashref) {
$link->{Title} =~ s,^(.{50}).*$,$1...,;
$output .= Links::SiteHTML::display ('link1', $link);
}
return $output;
}
Subject Author Views Date
Thread newest links added question katabd 1336 Nov 23, 2001, 6:52 PM
Thread Re: [katabd] newest links added question
Paul 1301 Nov 24, 2001, 3:53 AM
Thread Re: [PaulW] newest links added question
katabd 1329 Nov 24, 2001, 4:59 AM
Thread Re: [katabd] newest links added question
BryanL 1273 Nov 25, 2001, 3:35 PM
Thread Re: [BryanL] newest links added question
Paul 1273 Nov 25, 2001, 6:00 PM
Post Re: [PaulW] newest links added question
BryanL 1263 Nov 25, 2001, 8:02 PM