I've got something very similar to that, with three columns, but otherwise similar logic:

<cfset total_items = GetPerFeatures.Recordcount>
<cfset columns = 3>
<cfset col_tick = 0>
<cfset count = 0>

<table border=0 cellpadding=0 cellspacing=0 width=90% align=center>
<tr>


<cfoutput>
<cfloop query="GetPerFeatures">

<cfset col_tick = IncrementValue(col_tick)>
<cfset count = IncrementValue(count)>

<td valign=top width=200>
<p><img src="" width=150 border=0 align=center></a></p>
</td>
<cfif count EQ total_items>
  </tr></table>
<cfelseif col_tick EQ columns>
  </tr><tr><cfset col_tick = 0>
</cfif>
</cfloop>

</cfoutput>

Discry

>I have this piece of code:
>
>
>
>
>
>
>
><tr>
>
>
>
><cfoutput query="qSubCat1" group="Style">
>
>
>
>                        <td>
>
>
>
>                            <img src="" border="0">
>
>
>
>                        </td>
>
>
>
>                              <cfif  CurrentRow Mod 2 IS 1>
>
>                               </tr>
>
>                               <tr>
>
>                               </tr>
>
>                      </cfif>
>
>            </cfoutput>
>
>
>
>                                    
>
>
>
>
>
>
>
>What I was hoping to achieve was, when the second image appeared (the second
>column), then a new row would appear. So I guess what I am saying is that I
>want to create a table that is two colums wide by X rows.
>
>
>
>
>
>
>
>Thanks,
>
>
>
>                                                            
>
>
>
>
>
>
>
>Bruce Sorge
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to