Using a lookup table [was: php/mySQL Question]
I'm stumped here with updating a table in php/mysql
I have 3 database tables:
| Dine_options | Diners | Search_terms |
|---|---|---|
*do_id d_id so_id | *so_id diner_name | *d_id st_name |
Search_terms holds all "search terms" (ex: food types) .
Dine_options holds values for what diner (so_id) has what particular search terms (d_id)
I'm looking for a way to query results that will show what search terms each diner has.
Example Query:
-----------------------
Search terms from "Leo's Eatery" that are storked in dine_options are displayed with a "X::
Pizza X
BBQ X
Hamburger
Bakery X
Greek
Russian X
Salads X
Mexican
-------------------------------
Confused
and stumped. Thanks in advance! Cheers!
