Building tree of links from SQL database by php
Posted: Sat Jan 24, 2009 7:49 am
Hello all!
I have a problem that I'm working on for 2 weeks and I can't solve it.
I want to convert database in SQL to a tree of links in HTML by php.
the structure of my database goes like this:
.question1
...answer1
.....question2
..........answer6
..........answer7
..........answer8
..........answer9
...answer2
...answer3
...answer4
and so on..
Its not a problem to do that by javascript but that way it will by a static tree, I want that the tree will by dinamic (from the database)
Can someone help me?
Doron
I have a problem that I'm working on for 2 weeks and I can't solve it.
I want to convert database in SQL to a tree of links in HTML by php.
the structure of my database goes like this:
.question1
...answer1
.....question2
..........answer6
..........answer7
..........answer8
..........answer9
...answer2
...answer3
...answer4
and so on..
Its not a problem to do that by javascript but that way it will by a static tree, I want that the tree will by dinamic (from the database)
Can someone help me?
Doron