I do something like this:

<!--RowBreak is number of columns per row--->
<CFSET RowBreak = 4>

 <TABLE BORDER=0 CELLPADDING=5 CELLSPACING=0 WIDTH="98%">
  <TR>
   <CFOUTPUT QUERY="GetDesigns">
   <CFSET ModValue = GetDesigns.CurrentRow MOD RowBreak>
   <TD WIDTH="25%" ALIGN=center>

   </TD>

   <CFIF ModValue IS 0>
  </TR><TR>
   </CFIF>

   </CFOUTPUT>
  </TR>
 </TABLE>

-- Ric Smith



> Fellow CF wackers, hackers and smackers --
>
> I come to you in my hour of need, hoping your collective wisdom will
> help get my ass out of a sling.
>
>
>
> I would like the results of a query to format into a table, or table
> like form 4 or 5 columns wide.
>
> I would like the each individual query result to flow into a cell,
> and for the whole process to loop until I have a nice 4 column wide,
> however many rows deep table.
>
> I know how to loop the query through a table row. But in my
> unenlightened, under-caffinated state, looping into a cell, with a
> predetermined number of cells eludes me.
>
> Help?
>
> David Ryan - Minister of Information and Culture
> CRUMBLING EMPIRE PRODUCTIONS
> 134 W.26th St. 12th Floor
> New York, NY  10001
> (212) 247-0296
> --------------------------------------------------------------------------
----
> 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