Try this <table> <tr> <td>FIRST NAME</td> <td>FIRST NAME</td> <td>FIRST NAME</td> </tr> <cfoutput query="querymarks"> <tr> <td>querymarks.firstname</td> <td>querymarks.lastname</td> <cfloop from="1" to="listlen(vMarks)" index="index"> <td>#querymarks["marks_" & index]#</td> </cfloop> </tr> </cfoutput> </table>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334387 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm