I have 3 dropdown boxes, and I want to make a query depending what the user chooses. But what happens if they don’t choose any option for the dropdown boxes?
I want to display all products where product=first dropdownbox, and price is between $first and $last, but I’m unsure how to do that.
SELECT * FROM Products where product=$rec AND PRICE >=$first AND PRICE <=$last
It’s not clear what you’re asking, but I’m guessing you want something like this:
As I said, I’m not quite sure about what you’re asking for.