Question
Report output
I usually output my report in a table like this :
<table>
<cfoutput query="qry">
<tr>
<td>#field_1#</td><td>#field_2#</td><td>#date_field#</td>
</tr>
</cfoutput>
</table>
This works fine and my output looks like this :
Field 1 Field 2 Date
12345 ABC 1/1/2008
12345 XYZ 1/2/2008
12345 mmm 1/2/2008
12345 zzz 1/3/2008
What I need to do is to rearrange the output to look like this, one row per instead of multiple columns :
12345 ABC 1/1/2008 XYZ 1/2/2008 mmm 1/2/2008 zzz 1/3/2008
How do I do this ? And what about the headings ? It can vary from 1 to any number, so how can I accomodate that also ?
thanks
<table>
<cfoutput query="qry">
<tr>
<td>#field_1#</td><td>#field_2#</td><td>#date_field#</td>
</tr>
</cfoutput>
</table>
This works fine and my output looks like this :
Field 1 Field 2 Date
12345 ABC 1/1/2008
12345 XYZ 1/2/2008
12345 mmm 1/2/2008
12345 zzz 1/3/2008
What I need to do is to rearrange the output to look like this, one row per instead of multiple columns :
12345 ABC 1/1/2008 XYZ 1/2/2008 mmm 1/2/2008 zzz 1/3/2008
How do I do this ? And what about the headings ? It can vary from 1 to any number, so how can I accomodate that also ?
thanks
