this is what I currently have, which is not what I am after as it produces

1 2 3
4 5 6
7 8 9
10 11 12
etc

variables.column = 3;
variables.row = ceiling( rsSubCategory.recordCount / variables.column );

<table
   border="0"
   cellspacing="0"
   cellpadding="0"
   id="category">
   <caption title="#rsSubCategory.recordCount# sub
categories">#rsCategory.title#</caption>
   <cfloop
    from="0"
    to="#variables.row - 1#"
    index="i">
    <tr>
     <cfloop
      from="1"
      to="#variables.column#"
      index="j">
      <cfscript>
       variables.index = ( variables.i * variables.column ) + variables.j;
      </cfscript>
      <cfif variables.index lte rsSubCategory.recordCount >
       <td>
        #variables.index#
        </p>
       </td>
      <cfelse>
       <td></td>
      </cfif>
     </cfloop>
    </tr>
   </cfloop>
  </table>




On 4/5/07, Seona Bellamy <[EMAIL PROTECTED]> wrote:
>
> On 05/04/07, Dale Fraser <[EMAIL PROTECTED]> wrote:
> >
> >
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to