Hi, I have a database design question,
My tables:
toys
models
categories
TOYS for sale: people, cars, boats, guns, and airplanes.
MODELS under these TOYS:
people -> US marine, He-Man action-figure, etc...
cars -> F1 car, 1960 Ferrari, Tricycle War Vehicle, etc...
boats -> Spyder89 Racing Boat, Destroyer, Batman's Boat, etc...
guns -> Pistol, Bazooka, etc...
airplanes -> F16, Cessna, No-Engine Sports Glider, Blimp, etc...
CATEGORIES:
Military Toys
Sports Toys
Cartoon Network Toys
If a visitor ONLY wants to see Military toys, he/she can click: Category: MILITARY TOYS.
My code: SELECT * FROM toys WHERE category_id = $_GET['cat'] = 1 (Military has id=1)
But these same toys also BELONG to SPORTS toys. (category = 2)
So I can't SUMMON these TOYS anymore because their field is ALREADY POPULATED with a CATEGORY_ID = 1 (Military), meaning, their relationship is with the MILITARY CATEGORY already.
What can I do in my design so that these toys also show up under the SPORTS TOYS category?
I've seen it done in BIG webpages, I just don't know how they did it.
HELP!