MySQL - Group by price range
Group by user defined price bands.
Copy this code and paste it in your HTML
when product_price
>= 250 and product_price
<= 299.99 then '250-299.99' when product_price
>= 300 and product_price
<= 399.99 then '300-399.99' when product_price
>= 400 and product_price
<= 499.99 then '400-499.99' when product_price
>= 500 and product_price
<= 999.99 then '500-999.99'
URL: http://daipratt.co.uk/tag/mysql/
Report this snippet
Comments
Subscribe to comments