Hi, I am new to using coldfusion and programming in general. I have spent the last two days (no joke) trying to figure out how to take the output of a cfquery and split it up into multiple columns. I have found a couple examples on the web for doing this and have tried diligently to adapt them to my situation. I would appreciate it if someone could give me a pointer about where I am going wrong with what I am doing if you would be so kind. I really seem to be at my wits end and feel I am missing something fundamental.
I have been trying to amend the below example to my code. http://builder.cnet.com/webbuilding/pages/Programming/ScriptMagic/ss01k.html I have positioned the below with the other cfset commands. <!--- Specify number of columns. ---> <CFSET NumberOfColumns = 2> Below is the loop I can't figure out. <!-- InstanceBeginEditable name="Main Area Content" --> <table border="0" cellpadding="0" cellspacing="2"> <tr> </tr> <cfoutput query="Recordset1" startrow="#StartRow_Recordset1#" maxrows="#MaxRows_Recordset1#"> <CFIF (CurrentRow MOD NumberOfColumns) IS 1> </TR><TR> </CFIF> <tr> <td> </td> <td><a href="#Recordset1.FullURL#"><img src="#Recordset1.ThumbnailURL#" border="0"></a></td> <td> </td> </tr> </cfoutput> </table> <p> </p> <p> </p> <!-- InstanceEndEditable --> </td> Whatever help or advice you could give would be greatly apprecited. Thanks, John ______________________________________________________________________ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

