I have two MySQL tables, "locations" and items":
locations
`id` `name` `address` `latitude` `longitude`
Now I use a MySQL SELECT that allows a user to enter in their latitude and longitude and it will sort the locations by distance. That works perfect.
Now I have a list of items:
items
`id` `location` `title` `description` `display`
Now I want to display the items for each location if the display
of that item = true. I want this is be efficient, because some locations don't have any items, or no items set to display
= true.