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

Products: Gossamer Links: Development, Plugins and Globals: Re: [mick31] Add subcategory...: Edit Log

Here is the list of edits for this post
Re: [mick31] Add subcategory...
Something like this:

sub {
my $ID = $_[0] || 0;
my $cat_db = $DB->table('Category');
my $sth = $cat_db->select (['ID','Name'], { FatherID => $ID });
my $output;
while (my ($id,$name) = $sth->fetchrow_array) {
$output .= qq~<a href="$CFG->{db_cgi_url}/add.cgi?ID=$id">$name</a><br>~;
}
return $output;
}

Last edited by:

afinlr: Oct 17, 2004, 11:11 AM

Edit Log: