I know this problem has been addressed in other posts but I'm unable to apply it to my situation.
I have mutliple tables:
PRODUCTS
prodID
description
typeID
themeID
colorID
sizeID
TYPE
typeID
type
THEME
themeID
theme
COLOR
colorID
color
SIZE
sizeID
size
I want to display everything that is in the database with the related values. For example, the fields that are indicated as IDs are represented with numbers in the Products table. I need it to display the actual data that is entered in the othe fields. Instead of color displaying as "3", I need it to tell me it's "red". How do I do this?
I can get one table to work but not 4. This is what I started with:
$result= mysql_query ("SELECT Products.colorID, Color.color
FROM Products, Color
WHERE Products.colorID = Color.colorID") or
die (mysql_error());
Any help is appreciated. Thanks in advance for your help.