Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Help in adding another condition

Quote Reply
Help in adding another condition
Hello,

my $sth = $relation->select( 'Links.ID', { 'Category.ID' => $children }, GT::SQL::Condition->new('isNew', '=', 'Yes') );

I understand this code, but I don't know how to add in another condition: isValidated is 'yes'.

Could someone point this out to me please?


Thank you Smile
Quote Reply
Re: [nt6] Help in adding another condition In reply to
my $sth = $relation->select( 'Links.ID', { 'Category.ID' => $children }, GT::SQL::Condition->new('isNew', '=', 'Yes','isValidated','=','Yes') );

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!