Yes

<cfset itemcount = 0>
<cfset columncounter = 0>
<table>
   <cfoutput query="myquery">
      <cfset itemcount = itemcount + 1>
      <cfif itemcount EQ 1>
        <cfif coulmncount EQ 1>
           <tr>
        </cfif>
        <td>#NAME<br>
      </cfif>
      <cfif itemcount GTE 2 and LTE 3>
        #name#<br>
      </cfif>
      <cfif itemcount EQ 4>
        <cfset itemcount =0>
        <cfset columncount = coulmncount+1>
        #name#</td>
      </cfif>
      <cfif coulmncount GT 5>
         <cfset columncount = 1>
         </tr>
      </cfif>
   </cfoutput>
</table>

Well atleast something along that lines.
Did not test it but you can try it.


>>> [EMAIL PROTECTED] 05/15/02 12:54 PM >>>
Hi,

This might be a crazy question but here it goes.

I'm using <cfdirectory to list files on our server. Some directories can

have a 100+ files in them. Presently I'm displaying the list down the
left 
side of my webpage under each other.

file1.txt
file2.txt
file3.txt
file4.txt
file5.txt
etc...

I was wondering if there is a way automatically using a table to do the 
following and if so, how?


file1.txt   file5.txt   file9.txt     file13.txt   file17.txt
file2.txt   file6.txt   file10.txt   file14.txt   file18.txt
file3.txt   file7.txt   file11.txt   file15.txt   file19.txt
file4.txt   file8.txt   file12.txt   file16.txt   file20.txt



+-----------------------------------------------------------------------------------+


Philip Humeniuk
[EMAIL PROTECTED]
[EMAIL PROTECTED]
+------------------------------------------------------------------------------------+



______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
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

Reply via email to