Hi Ivan,
Here is what I have:
$my category_id;
print "Updating...";
my $has_children = (has_children($category_id)) ? 'Yes' : 'No';
$DB->table('Category')->update({ haschildren => $has_children}, { ID => $category_id });
print "done.<br>";
#determine if the category has children
sub has_children { $DB->table('Category')->count( { FatherID => $_[0] } ) }
I added a ); to the end of the $DB-> statement. Must have got chopped off.
http://www.iuni.com/...tware/web/index.html
Links Plugins
Here is what I have:
Code:
$my category_id;
print "Updating...";
my $has_children = (has_children($category_id)) ? 'Yes' : 'No';
$DB->table('Category')->update({ haschildren => $has_children}, { ID => $category_id });
print "done.<br>";
#determine if the category has children
sub has_children { $DB->table('Category')->count( { FatherID => $_[0] } ) }
I added a ); to the end of the $DB-> statement. Must have got chopped off.
http://www.iuni.com/...tware/web/index.html
Links Plugins