i have below table where i m storing question and multiple answers with id of quetion as below
table
ID Content QID
1 Q1 0
2 Q2 0
3 A1 1
4 A1 2
5 A2 1
6 A2 2
in above example Q for Question and A for Answer
Now i need result as question then its answer and so on e.g
I need output like First question and then all answer of that question.. then second question and all answers of that question...
1 Q1
3 A1
5 A2
2 Q2
4 A1
6 A2