i have a table with products and the user can choose which regions and cities he wants to let them be visible to. he can choose ALL REGIONS and ALL CITIES from a drop down menu and then i will put in the columns = 0.
the the buyers can choose which city they want to watch products from so they aslo have a drop down menu to pick a region and/or city. and they can also choose products from ALL REGIONS and/or CITIES.
the question is how this advanced query will look like.
so if the seller has clicked on one specific region but all cities, then if the buyer picks that region he can pick whichever city he wants to. that product will still be shown.
the buyer can instead of picking a city pick ALL CITIES. eg. then he will see all threads despite which city they posted to.
Im a noob in sql so it would be good if you guide me to pick the right commands for this query. this was a little bit to complex for me, i have no idea where to start...