I am having 5 checkbox with the food items like Chicken, fruits, vegetables, Snacks,.. like that.
What i am trying to implement is when the user selects the checkbox items and clicks submit, it will search for the restaurants providing the selected items,
Table will have 2 fields: restid, menu and the data is stored like this in the table
restid->1, menu->chicken
restid->1, menu->Burger
restid->2, menu->fruits
restid->3, menu->chicken
My doubt is how to search for the restaurants in the table. My plan is, loop through the for loop for each item with the select statement like (select * from restaurant_table where menu='menu';)
when we loop through the loop how can we combine the results for each menu?
Plz help any help will be appreciated