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

Re: [SSmeredith] last links added aka newest links

Quote Reply
Re: [SSmeredith] last links added aka newest links In reply to
This should do it...

Code:
sub {
my $link_db = $DB->table ('Links');
$link_db->select_options ('ORDER BY ID DESC', 'LIMIT 6');
my $links = $link_db->select('DISTINCT(Title)', 'ID', { isNew => "Yes", isValidated => "Yes" } )->fetchall_arrayref;
return join ("<br>", map { qq|<a href="$CFG->{db_cgi_url}/ppc_jump.cgi?ID=$_->[1]">$_->[0]</a>| }@$links);
}

Last edited by:

Paul: Jan 16, 2003, 12:16 PM
Subject Author Views Date
Thread; hot thread last links added aka newest links SSmeredith 5067 Jan 16, 2003, 11:19 AM
Thread; hot thread Re: [SSmeredith] last links added aka newest links
Paul 4891 Jan 16, 2003, 11:33 AM
Thread; hot thread Re: [Paul] last links added aka newest links
SSmeredith 4857 Jan 16, 2003, 11:41 AM
Thread; hot thread Re: [SSmeredith] last links added aka newest links
Paul 4847 Jan 16, 2003, 11:44 AM
Thread; hot thread Re: [Paul] last links added aka newest links
SSmeredith 4856 Jan 16, 2003, 11:53 AM
Thread; hot thread Re: [SSmeredith] last links added aka newest links
SSmeredith 4852 Jan 16, 2003, 12:04 PM
Thread; hot thread Re: [SSmeredith] last links added aka newest links
Paul 4874 Jan 16, 2003, 12:14 PM
Thread; hot thread Re: [Paul] last links added aka newest links
SSmeredith 4812 Jan 16, 2003, 12:30 PM
Thread; hot thread Re: [SSmeredith] last links added aka newest links
Paul 4839 Jan 16, 2003, 12:40 PM
Thread; hot thread Re: [Paul] last links added aka newest links
SSmeredith 4818 Jan 16, 2003, 12:57 PM
Post; hot thread Re: [SSmeredith] last links added aka newest links
Paul 4819 Jan 16, 2003, 12:59 PM