sorry about the syntax error, the code above is based on my suggestion to calculate the entries of each category during the management of the categories and during the add, edit, delete and tje move of the entries.
If you decide to go with a multi-level structure the counting with queries during listing will be really ugly.
If you go with this structure for example
Downloads A
- Downloads ab | Downloads ac
You can't have it saying Downloads A total entries = 0 when the subs have entries inside.
|