Math problem - Array of decimal - create price filter

  • Thread starter Thread starter Izi
  • Start date Start date

Izi

Izi

Soldato
Joined
9 Dec 2007
Posts
2,718
I have a list/array of prices. From this i need to create a filter like so:

£0-25
£26-50
£51-99

etc

say I have 1000 prices in the array, how would you go about factoring the prices in to filters?
 
cheers folks.

i decided in the end to let the admin enter price ranges, and only show price filters if the search results contained items which fit in the specified ranges.
 
Back
Top Bottom