Here is what I usually do in situations like this...

<table>
<tr>
<cfset count = 0>
<cfquery .....>
    <cfset count = count + 1>

    <td>#output your image#</td>
    <cfif count eq 4>
        <cfset count = 0>
        </tr><tr>
    </cfif>
</cfquery>
</tr>
</table>


-----Original Message-----
From: Shannon Carr <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Thursday, April 27, 2000 2:12 PM
Subject: cfloop query


>This is a multi-part message in MIME format.
>
>------=_NextPart_000_0062_01BFB059.F5CAF4C0
>Content-Type: text/plain;
> charset="iso-8859-1"
>Content-Transfer-Encoding: quoted-printable
>
>I am trying to generate a cfloop query that will query a table and ouput =
>the results in a table 4 columns wide.  The data are thumbnail photos. =
>The problem I am having is getting items to populate 1 row then move to =
>the next row until the table is complete.
>
>Any help would be appreciated.
>
>Thanks,
>S. Carr
>
>------=_NextPart_000_0062_01BFB059.F5CAF4C0
>Content-Type: text/html;
> charset="iso-8859-1"
>Content-Transfer-Encoding: quoted-printable
>
><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
><HTML><HEAD>
><META content=3D"text/html; charset=3Diso-8859-1" =
>http-equiv=3DContent-Type>
><META content=3D"MSHTML 5.00.2920.0" name=3DGENERATOR>
><STYLE></STYLE>
></HEAD>
><BODY bgColor=3D#ffffff>
><DIV><FONT size=3D2>
><DIV><FONT size=3D2>
><DIV><FONT size=3D2>I am trying to generate a cfloop query that will =
>query&nbsp;a=20
>table and ouput the results in a table 4 columns wide.&nbsp; The =
>data&nbsp;are=20
>thumbnail photos. The problem I am having is getting items to populate 1 =
>row=20
>then move to the next row until the table is complete.</FONT></DIV>
><DIV>&nbsp;</DIV>
><DIV><FONT size=3D2>Any help would be appreciated.</FONT></DIV>
><DIV>&nbsp;</DIV>
><DIV><FONT size=3D2>Thanks,</FONT></DIV>
><DIV><FONT size=3D2>S. =
>Carr</FONT></DIV></FONT></DIV></FONT></DIV></BODY></HTML>
>
>------=_NextPart_000_0062_01BFB059.F5CAF4C0--
>
>---------------------------------------------------------------------------
---
>Archives: http://www.eGroups.com/list/cf-talk
>To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
>

------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to