I am confused with building the query. I am implementing the search feature in a restaurant site. User first selects the area he is searching for restaurant and then he select the food types like chinese, japanese, thai from the checkboxes.
After selecting all these, the restaurants which providing the selected food in the selected area will be displayed. I am succeeded in getting the pincodes and food types from the yser.
I hav two table with the following fields,
restaurant_dp table with fields
id -ID of the restaurant
pcode -pincode of the area
restaurant_iw table with fields
id - id of the restaurant
menu - menu the restaurant provides (eg., Chinese, thai etc.,)
My confusion is how to fetch the records from both the tables with the conditions:
- pcode = Userselectedpincode
- menu = userselected menu
Plz help. Any help will be appreciated