Hi all,
First of all, I know this is very long, however it's just to show you what I've got,
and what I want, the questions are at the end.
I have two Tables:
Table rating
|- Id
|- product_name
|- good
|- bad
|- rating_id
// this table is for the details
Table rating_ids
|- Id
|- rating_name
// this is just to have different rating categories..
for example:
i would like to output boxes like:
rating name
---------------------------------
prduct name | good | bad
prduct name | good | bad
prduct name | good | bad
rating name2
---------------------------------
prduct name | good | bad
prduct name | good | bad
prduct name | good | bad
rating name3
---------------------------------
prduct name | good | bad
prduct name | good | bad
prduct name | good | bad
etc...
and I have the following code:
what this code will do is:
output everything at once...
without categorising them seperately
prduct name | good | bad
prduct name | good | bad
prduct name | good | bad
prduct name | good | bad
prduct name | good | bad
prduct name | good | bad
prduct name | good | bad
prduct name | good | bad
prduct name | good | bad
Questions
what is the concept of joinging these two tables?
what would I need to use: php or mysql or both?
how will fetch_assoc work with this?
thanks in advance...