I have two select boxes with the search button. In One select box is fruit
and a second is car
.
Now the issue is
1) If anyone select from the first select box and second select box then displays all records (Means it will display all fruit and car records).
2) If anyone select only First select box then display all records(Means it will display only fruit records) or
3) select second select box then display all records(Means it will display all car records).
Below query, I tried it is displaying It is working for the First issue
SELECT * FROM request WHERE fruit='$fruit' and car='$car'
I need a query for 2) and 3) in single query. Would you help me in this?