Hi. Does anyone know how I could acheive the following;
my $cond = GT::SQL::Condition->new( 'Top_Order', '>', '0' );
$sth = $table->select( { isValidated => 'Yes' }, { CategoryID => $cat_id }, $cond );
Basically, I want to select any links where Top_Order IS > than 0, and CategoryID => $cat_id (CatLinks), and isValidated = 'Yes' in the 'Links' table.
It works fine if I don't use the GT::SQL::Condition... so I'm assuming it has something to do with how I am calling it from within the select().
TIA.
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!
my $cond = GT::SQL::Condition->new( 'Top_Order', '>', '0' );
$sth = $table->select( { isValidated => 'Yes' }, { CategoryID => $cat_id }, $cond );
Basically, I want to select any links where Top_Order IS > than 0, and CategoryID => $cat_id (CatLinks), and isValidated = 'Yes' in the 'Links' table.
It works fine if I don't use the GT::SQL::Condition... so I'm assuming it has something to do with how I am calling it from within the select().
TIA.
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!