Try moving the <CFSET x = 1> bit in front of the <CFLOOP> tag. Every iteration of the loop current resets x back to 1.
-- Mosh Teitelbaum evoch, LLC Tel: (301) 625-9191 Fax: (301) 933-3651 Email: [EMAIL PROTECTED] WWW: http://www.evoch.com/ > -----Original Message----- > From: FlashGuy [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, September 25, 2002 8:16 AM > To: CF-Talk > Subject: Display 3 column text > > > Here is my code below. I still can't get it to display in 3 columns? > > <cfquery name="GetEnv" datasource="user-profiles" dbtype="ODBC"> > SELECT strUsername,strGroup,strSelect > FROM profiles > WHERE strUsername = '#auth#' > </cfquery> > > <table wisth="100%" cellpadding="6" cellspacing="0" border="0" > align="center"> > <tr class="wdirlinks"> > <td colspan="2"> > <cfif COOKIE.DisplaySelect GT 0> > <cfloop index="ListElement" list="#COOKIE.DisplaySelect#" > delimiters=","> > <cfoutput> > <table width="100%" cellpadding="2" cellspacing="2" border="0"> > <tr> > <cfset x=1> > <cfif NOT x MOD 3></tr><cfif x NEQ > #ListElement.RecordCount#><tr></cfif></cfif> > <cfset x = x + 1> > <td class="wdirlinks"><input type="checkbox" name="select" > value="checked">#ListElement#</td> > </tr> > </table> > </cfoutput> > </cfloop> > <cfelse> > <b>None Selected</b> > </cfif> > </td> > </tr> > </table> > > > --------------------------------------------------- > Colonel Nathan R. Jessop > Commanding Officer > Marine Ground Forces > Guatanamo Bay, Cuba > --------------------------------------------------- > > > > ______________________________________________________________________ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.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

