Hi,
Not 100% sure what you are trying to do? If you are just passing in a category ID, you could use:
<%get_category_details(1234)%> (where 1234 is the category you want to get the details for)
Global: get_category_details
my $cat = $DB->table('Category')->select( { ID => $_[0] } )->fetchrow_hashref;
return $cat;
}
Is that what your after?
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!
Not 100% sure what you are trying to do? If you are just passing in a category ID, you could use:
<%get_category_details(1234)%> (where 1234 is the category you want to get the details for)
Global: get_category_details
Code:
sub { my $cat = $DB->table('Category')->select( { ID => $_[0] } )->fetchrow_hashref;
return $cat;
}
Is that what your after?
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!