| is there a SUM of all views in one (sub_)Cat?
i'm looking for something along the lines of: $totalviews['catid']
so i can display a SUM of every image view, combined for the one sub_category.
i.e. if i have 5 photos with, 23 views, 48 views, 162 views, 28 views, 100 views,
then my total views for the cat is: 361.
(i hope that's explained well enough)
is there already a $var available, or is it easy to create? also, would the sql query be too intensive for a view of (example) 20 sub cats on page, each with 120 images?
|