Hey Andy,
I tried using one of your Globals:
my $FatherID = shift;
my $sth = $DB->table('Category')->select( { ID => $FatherID } ) || return $GT::SQL::error;
my $Father;
while (my $hit = $sth->fetchrow_hashref) {
$Father = $hit->{ID};
}
$Father ? return $Father : return "Couldnt find a match for ID : $FatherID";
}
However when I call it : <%Fathername_by_id($FatherID)%>
It outputs Father ID # & not the name :( ..
Please help..
--------------------------------
global post @ https://www.gossamer-threads.com/...r%20category#p286345
Vishal
-------------------------------------------------------
I tried using one of your Globals:
Code:
sub { my $FatherID = shift;
my $sth = $DB->table('Category')->select( { ID => $FatherID } ) || return $GT::SQL::error;
my $Father;
while (my $hit = $sth->fetchrow_hashref) {
$Father = $hit->{ID};
}
$Father ? return $Father : return "Couldnt find a match for ID : $FatherID";
}
However when I call it : <%Fathername_by_id($FatherID)%>
It outputs Father ID # & not the name :( ..
Please help..
--------------------------------
global post @ https://www.gossamer-threads.com/...r%20category#p286345
Vishal
-------------------------------------------------------