Answered
Outputting Query Results with Unknown Column Names
I have been using this code to grab the column headers from a
select * statement. (I never know what table will be queried out of
12,000 or so. I want to loop through the column headers and then
the query results in to a web page table.
<cfoutput>
<cfset colHeaderNames = ArrayToList(recordset1.getColumnList())/>
#colHeaderNames#
</cfoutput>
Is there a similar method or any suggestions for outputting the results of the query - now that I know the column headers?
<cfoutput>
<cfset colHeaderNames = ArrayToList(recordset1.getColumnList())/>
#colHeaderNames#
</cfoutput>
Is there a similar method or any suggestions for outputting the results of the query - now that I know the column headers?
