Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: [nir] New Links Question

Quote Reply
Re: [nir] New Links Question In reply to
Hi,

Try this:

Code:
use GT::SQL::Condition;
my $cond = new GT::SQL::Condition;
$cond->add('CatLinks.CategoryID','=','6789');
$cond->add('CatLinks.CategoryID','=','12345');
$cond->add('CatLinks.CategoryID','=','123456');
$cond->bool('OR');


my $sth = $tbl->select( $cond, { isNew => 'Yes', isValidated => 'Yes' } ) || die $GT::SQL::error;

Untested, but should work.

Hope that helps.

Cheers

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 New Links Question leesar 5978 Mar 15, 2007, 6:54 AM
Thread Re: [leesar] New Links Question
Andy 5812 Mar 15, 2007, 10:58 AM
Thread Re: [Andy] New Links Question
leesar 5816 Mar 15, 2007, 10:47 PM
Thread Re: [leesar] New Links Question
eupos 5822 Mar 16, 2007, 12:06 AM
Post Re: [eupos] New Links Question
leesar 5801 Mar 16, 2007, 12:28 AM
Thread Re: [leesar] New Links Question
Andy 5788 Mar 16, 2007, 2:01 AM
Thread Re: [Andy] New Links Question
nir 5819 Mar 25, 2007, 3:18 AM
Thread Re: [nir] New Links Question
Andy 5761 Mar 25, 2007, 4:36 AM
Thread Re: [Andy] New Links Question
nir 5769 Mar 25, 2007, 6:32 AM
Thread Re: [nir] New Links Question
Andy 5735 Mar 26, 2007, 3:59 AM
Thread Re: [Andy] New Links Question
nir 5719 Mar 26, 2007, 9:27 AM
Post Re: [nir] New Links Question
Andy 5723 Mar 26, 2007, 9:52 AM