title: Generating Query in MySql
body: <p>I am developing a simple PHP report page, containing HTML select tools, where multiple values can be selected.User may select multiple values or he may select All option. If user selects All option, then in query I need not write WHERE condition,but if he selects one or two values from select list, then I need to write only selected values in MySql WHERE. How can I write a generic query to get values from db table.
   This is my first Mysql project, I am unable to write a generic query.
  Thanks</p>