Hi all
I am building a navigation menu which consists of a price range as such:
0 - 50
50 - 100
100 - 150
150 - 200
This menu is based on the price values of products I am searching for, so I get a list of all prices, store them in an array and get the MIN and MAX values, and then increment in blocks of 50 through the array to make my menu above. This works great.
What I need help with is doing a count of array values that exist and show a count against each menu item so my menu would be as such:
0 - 50 (23)
50 - 100 (102)
100 - 150 (76)
150 - 200 (2)
What is the best mthod to count all array values that exist between my ranges as I loop through and output my menu items?
Any help would be greatly appreciated.
Doug