Hello again..
I solved the problem with listing all tree from mysql db. Now i've got another problem:
I have a web directory. And every directory has its own sub-dirs, and every sub dir its own dirs.. so i made a link count, so, the folx can se how much links are listed in one directory..
every root directory has its own table, example:
WWW -> E-mail -> Web based -> Free
(all directories are in table www)..
all directories are also listed in "categs" table, example:
CATEGORY_ID | PARENT_ID | NAME | TABLE
1 | 0 | WWW | www
2 | 1 | E-mail | www
3 | 2 | Web based | www
4 | 3 | Free | www
Now, when i want to show all links listed in directory name WWW, offcourse i will do read number of rows from table name: www
but if i am in sub-dir E-mail (and one links is listed in "Free"), it will show me "0" links. If i move in Web-based Then at last will show me again: Free (1 links)
How to do that with not showing in E-mail???
If you have a solution for this question i will apretiate it if you share it with me.
Thank you very much for all answers,
Gregor