MySQL Database Structure:
Table: Shrimp_Stores
id (primary key)
name
city
state
Table: Shrimp_Restaurants
id (primary key)
name
city
state
How do I query for Shrimp_Restaurants.city AND Shrimp_Stores.city WHERE their corresponding state is = to $state and put them in one array?
Eg:
Data in DB:
Shrimp_Stores
(1, Shrimp USA, Miami, FL)
(2, Shrimp Florida, Orlando, FL)
Shrimp_Restaurants
(1, Excellent Seafood, Miami, FL)
(1, Gourmet Seafood, Orlando, FL)
I want the following array when I query the database:
Array(Miami, Orlando)
I would rather not have to make relationships and have the city and state columns in their own tables.
THanks in advance for your help.