Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: [kriis] Random Featured Link

Quote Reply
Re: [kriis] Random Featured Link In reply to
Hi...try this;

Code:
sub {

my $table = $DB->table('Links');
$table->select_options ('ORDER BY RAND() LIMIT 1');
my $link = $table->select( { 'isValidated' => 'Yes', 'isFeatured' => 'Yes' } )->fetchrow_hashref;
my $html = Links::SiteHTML::display('link', $link);
return $html;

}

I just tested it, and it appears to be working ok.

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Subject Author Views Date
Thread Random Featured Link kriis 5632 Aug 15, 2002, 8:38 PM
Thread Re: [kriis] Random Featured Link
Andy 5541 Aug 15, 2002, 11:52 PM
Thread Re: [Andy] Random Featured Link
kriis 5540 Aug 16, 2002, 1:20 AM
Thread Re: [kriis] Random Featured Link
Andy 5527 Aug 16, 2002, 8:17 AM
Thread Re: [Andy] Random Featured Link
Payooo 5503 Aug 16, 2002, 8:55 AM
Thread Re: [Payooo] Random Featured Link
Andy 5489 Aug 16, 2002, 9:52 AM
Thread Re: [Andy] Random Featured Link
kriis 5506 Aug 16, 2002, 10:20 AM
Thread Re: [kriis] Random Featured Link
Andy 5357 Dec 9, 2003, 8:22 AM
Thread Re: [Andy] Random Featured Link
SalB 5162 Mar 4, 2006, 11:48 AM
Thread Re: [SalB] Random Featured Link
tandat 5166 Mar 4, 2006, 7:08 PM
Thread Re: [tandat] Random Featured Link
SalB 5135 Mar 5, 2006, 3:14 AM
Post Re: [SalB] Random Featured Link
tandat 5129 Mar 7, 2006, 1:09 AM