Hi,
Try this:
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!
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!