Okay, here we go:::
my articles table looks like so:
it containt articles divided into catagories and subcatagories:
id | title | cat_id | subcat_id
lets say we have 3 entries:
id | title | cat_id | subcat_id
1 | one | 2 | 1
2 | two | 2 | 2
3 | three | 1 | 2
okay, now I have to make that, look like this on my website::
-cat2
--subcat 1
-----article1
--subcat 2
-----article2
-cat1
--subcat1
---- EMPTY
--subcat2
---article3
Does anybody have a clue how to do this without querying every time I need to get to organize information. Kind of have one master query of which everything can be done