I have a querry that I would like to be processed before being displayed.

ie:

the querry outputs something like:



TextA , 1

TextB, 1, 1, 1

TextC 1,1,2

TextD, 2

TextE 2,3



The trick here is that for each field being field after the name (Text0 ... ) the name gets displayed on step down in the page



so for this sample data you would have:





TextA

TextB

Text C

TextD

TextE





so some kind of tree...

I am not sure how to start... any help would be welcomed...

thanks