1 Replies - 5053 Views - Last Post: 04 June 2012 - 10:00 AM Rate Topic: -----

#1 theborg72  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 7
  • Joined: 05-May 10

CurrentRow MOD and br

Posted 30 May 2012 - 11:49 PM

hello I'm trying to get a loop. The idea is to just
create a table that shows 2 row and 5 column.

Instead of
1
2
3
4
a.s.o

I want
12345
space writable
678910

I've made a CurrentRow MOD and got to the lines, but
not the space

<table width="500" border="1">
<tr><cfoutput query="testrec" startRow="#StartRow_testrec#" maxRows="#MaxRows_testrec#">
<td>#testrec.tblOnskelista# </td>
<CFIF testrec.CurrentRow MOD 5 IS 0>

</TR>
<TR></TR>
</CFIF>
</cfoutput>
</table>


but how do you get to space
12345
space writable
678910

Is This A Good Question/Topic? 0
  • +

Replies To: CurrentRow MOD and br

#2 davejlong  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 26-January 12

Re: CurrentRow MOD and br

Posted 04 June 2012 - 10:00 AM

I am very confused by what you are asking for and need some clarification, but I'll try to answer what you are asking.

Here is the code that you need according to what you said:

<table width="500" border="1">
  <cfoutput query="testrec" startRow="#StartRow_testrec#" maxRows="#MaxRows_testrec#">
    <tr>
      <td>#testrec.tblOnskelista# </td>
      <CFIF testrec.CurrentRow MOD 5 IS 0>
        </TR>
        <TR>
          <td colspan="5"><!--- This is your writable space ---></td>
        </TR>
        <tr><!--- Start the next row --->
      </CFIF>
  </cfoutput>
  </tr><!--- Make sure all rows are closed --->
</table>




You have to

I am very confused by what you are asking for and need some clarification, but I'll try to answer what you are asking.

Here is the code that you need according to what you said:

<table width="500" border="1">
  <cfoutput query="testrec" startRow="#StartRow_testrec#" maxRows="#MaxRows_testrec#">
    <tr>
      <td>#testrec.tblOnskelista# </td>
      <CFIF testrec.CurrentRow MOD 5 IS 0>
        </TR>
        <TR>
          <td colspan="5"><!--- This is your writable space ---></td>
        </TR>
        <tr><!--- Start the next row --->
      </CFIF>
  </cfoutput>
  </tr><!--- Make sure all rows are closed --->
</table>


Was This Post Helpful? 0
  • +
  • -

Page 1 of 1