F
Frank
Hi!
I just run into a problem wich some of you might be able to solve
really quickly so i decided to give this group a shot.
In the database a have 2 tables (well, to make it easy here).
1) Question
2) Answer
Each question has multiple answers attached to it. this means that
your will get the following result set.
---------------------------
quesion1 (type 1) -- answer1q1
quesion1 (type 1) -- answer2q1
quesion1 (type 1) -- answer3q1
quesion2 (type 1) -- answer1q2
quesion2 (type 1) -- answer2q2
quesion3 (type 2) -- answer1q3
quesion3 (type 2) -- answer2q3
quesion3 (type 2) -- answer3q3
quesion3 (type 2) -- answer4q3
---------------------------
Now each question has also a 'type'.
The problem:
I would like to display the question,if type 1, in a single line with
behind it a select box with all the answers in it. So display the
question once and put the answers to that question in a selectbox.
I have no idea how many questions or how many answers each question
has...
anyone any idea's ??
I just run into a problem wich some of you might be able to solve
really quickly so i decided to give this group a shot.
In the database a have 2 tables (well, to make it easy here).
1) Question
2) Answer
Each question has multiple answers attached to it. this means that
your will get the following result set.
---------------------------
quesion1 (type 1) -- answer1q1
quesion1 (type 1) -- answer2q1
quesion1 (type 1) -- answer3q1
quesion2 (type 1) -- answer1q2
quesion2 (type 1) -- answer2q2
quesion3 (type 2) -- answer1q3
quesion3 (type 2) -- answer2q3
quesion3 (type 2) -- answer3q3
quesion3 (type 2) -- answer4q3
---------------------------
Now each question has also a 'type'.
The problem:
I would like to display the question,if type 1, in a single line with
behind it a select box with all the answers in it. So display the
question once and put the answers to that question in a selectbox.
I have no idea how many questions or how many answers each question
has...
anyone any idea's ??