How can execute a MySQL query with multiple WHERE-clauses?
问题 how would you do a mysql query where a user can choose from multiple options. Fox example I have a form that user can use to search for houses. Now I have a select box where you can chosse whether you want a house, a flat or whatever. Then I have a second box where you can choose for example the city you want the house or flat to be in. And maybe another one with the maximum price. Now how would you do the mysql query? My problem is, I would do it like that: if($_POST["house_type"] != 0) {