Hi freejung
I tried the way you suggested but the result is not right.
If you look at the test page on the address below you see that the result doing it the way you suggest shows how many child's each category has. What I need however is to display how many restaurants that are connected to each child. For example how many restaurants that are exklusive, how many that serves asian food, how many restaurants that are based in Stockholm etc, etc.
http://www.minakrogar.nu/test1.html
These values are saved as TV's on each restaurant and each restaurant will have values from every category. That is; a restaurant can be exclusive AND serving Asian food AND be based in Stockholm AND in the neighborhood called "Vasastan" etc.
The best way I think would be to do a snippet that simply count how many instances each cateogry has (city, food etc.). As I'm not very good at PHP so I don't know how to do this though.
I tried with the @SELECT call below which simply counts how many instances each category has and which works fine. The problem though is that I have to hard code the LIKE value for each and every category which wont work. Basically I need to find a way to get the LIKE value putted in dynamically.
If you know how to do this I would be more than greatful!
*** The select call ***
@SELECT COUNT(*) FROM mod_site_tmplvar_contentvalues WHERE value LIKE '***here I would like to pass the value dynamically instead of hard code it like ex. Exklusive***'