View Single Post
  #3  
Old 03-19-2007, 08:02 AM
 
pdheady pdheady is offline
 

Advanced Member
  
Join Date: Mar 2007
Location: West Palm Beach, FL
Posts: 36
 

Default Re: Is there a way to count # of subcategories of category id?

I found this code in /include/categories.php

I wonder if I can do something with this?

Quote:
#
# Count the subcategories
#
$category["subcategory_count"] = func_query_first_cell("SELECT subcategory_count FROM $sql_tbl[categories_subcount] WHERE categoryid='$cat'".($current_area == 'C'?" AND membership = '".addslashes($user_account["membership"])."'":""));

return $category;
}
__________________
Xcart 4.0.19
Reply With Quote