I'm trying to setup a weird tree structure in MySQL, but need ALOT of help... there is the basic idea:
1. Project
- category
-category detail
- category
-category detail
- category
-category detail
2. Project
- category
-category detail
- category
-category detail
- category
-category detail
- category
-category detail
Now, Project (and all of its data) is stored in one table... category is stored in another table, and category details is stored in another table... so effectivaly I have 3 tables... Projects being the main, and category being referenced by it, and then category detail being referenced by category...
Also, there will be a variable amount of categoys in each project... for instance, one could have 6 and the next one could have 24 categories...
I have NO idea how to put this together in PHP to make it display as such, so any help would be greatly appreciated. All i know is that I should be referencing ID's from the other tables, but how to do that, i do not know.