Consider the case of any e-commerce website where we filter product results based on zero to 'n' number of constraining parameters such as price, availability, brand, etc where 'n' is the max possible number of allowed constraints. While doing so, we can add or remove choice of parameters as well (for e.g. removing the price constraint).
I am trying to make a small prototype for the above scenario using mysql and Php.
I understand that we will be playing around with nested queries and keep filtering selection of product ids (primary Key in this case). Final results can be displayed based on the resulting set of product ids.
I am still wondering what is the best way to get started on this. Any help will be appreciated.
Thanks!
WHEREclauses dynamically. What queries exactly and how exactly depends on your database structure. This question is too vague to have a real answer.