here's some code I just used:
<table>
<tr>
<cfset x=1>
<cfloop query="Images">
    <td><img src="../userimages/#Images.cFileName#"></td>
    <cfif NOT x MOD 3></tr><cfif x NEQ Images.RecordCount><tr></cfif></cfif>
    <cfset x = x + 1>
</cfloop>
</table>

Enjoy!
Hatton

FlashGuy wrote:

>Yo all,
>
>I'm doing a <cfloop on my cookie variable which is being picked up from my database 
>and set.
>
>I want to display the results into three columns rather than just one.
>
>Here is my code.
>
><cfif cookie.DisplaySelect GT 0>
><cfoutput>
>                    Display Results:
>                   <cfloop index="ListElement" list="#cookie.DisplaySelect#" 
>delimiters=",">
>                   #ListElement#<br>
>                  </cfloop>
></cfoutput>
><cfelse>
>                  Display Results: None Selected
></cfif>
>
>Here is the output:
>
>program files
>temp
>test
>windows
>
>
>How can I display it as a 3 column table? The output varies depending on directory 
>structure.
>
>program files                    temp                           test
>windows                         etc.                             etc.
>etc.                                  etc.                             etc...
>
>
>
>---------------------------------------------------
>Colonel Nathan R. Jessop
>Commanding Officer
>Marine Ground Forces
>Guatanamo Bay, Cuba
>---------------------------------------------------
>
>
>
>
>-------------------------------------------------------------------------
>This email server is running an evaluation copy of the MailShield anti-
>spam software. Please contact your email administrator if you have any
>questions about this message. MailShield product info: www.mailshield.com
>
>-----------------------------------------------
>To post, send email to [EMAIL PROTECTED]
>To subscribe / unsubscribe: http://www.dfwcfug.org
>
>  
>



-------------------------------------------------------------------------
This email server is running an evaluation copy of the MailShield anti-
spam software. Please contact your email administrator if you have any
questions about this message. MailShield product info: www.mailshield.com

-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org

Reply via email to