I am just begining to learn php and mysql so please forgive me if i am asking stupi question.
I have two tables:
Categories (CatID, CatName)
Products (ProdID, CatID, ProdName)
Now, I would like to list all categories and their products on one PHP page.
so it would look something like this:
Category 1
- prod 1
- prod 2
- prod 3
... etc
Category 2
-prod1
-prod2
-prod3
... etc
and so on for all the categories...
Is there a sample where I can see how this can be done? Thanks for any help!