Gossamer Forum
Home : Products : DBMan SQL : Development, Plugins and Globals :

problem executing ther global

Quote Reply
problem executing ther global
Hi ,

I wrote this code to extract data from a database

sub {
my $tags = GT::Template->tags;
my($accountid,$clientid,$output);
my($table33,$sth33);
$accountid = $tags->{AccountID};
$table33 = $DB->table('tblClients');
$sth33 = $table33->select (['ClientID'], {AccountID => $accountid});
$sth33->execute();
$clientid = $sth33->fetchrow();
$output= $clientid;
return $output;
}



I call this global ... in a file ... <% global-nAME%> . intead of executing the global and printing the client ID .. it prints the whole code ( subroutine) itself ..

how do i get about this ..
Subject Author Views Date
Thread problem executing ther global sdsouza 3560 Oct 21, 2003, 5:55 PM
Post Re: [sdsouza] problem executing ther global
604 3461 Oct 22, 2003, 10:45 AM
Post Re: [sdsouza] problem executing ther global
jai 3452 Oct 22, 2003, 4:19 PM