Home : Products : Gossamer Links : Development, Plugins and Globals :

Products: Gossamer Links: Development, Plugins and Globals: Re: [pugdog] Category Menu Everywhere: Edit Log

Here is the list of edits for this post
Re: [pugdog] Category Menu Everywhere
Quote:
then you need to do a

$sth = $db->select

Thats the bit Im referring to. But you have it right.

Its when you include something like ->fetchrow_hashref that you don't use $sth ...eg this is wrong:

my $sth = $table->select( { FatherID => 0 }, ['ID', 'Full_Name'] )->fetchrow;

....but this is right:

my @rec = $table->select( { ID => 1 }, ['ID', 'Full_Name'] )->fetchrow;

....and this is wrong:

my @rec = $table->select( { ID => 1 }, ['ID', 'Full_Name'] );

...but this is right:

my $sth = $table->select( { FatherID => 0 }, ['ID', 'Full_Name'] );




Last edited by:

RedRum: Dec 31, 2001, 10:02 AM

Edit Log: