CurrentRow MOD loop table

Discussion in 'Programming' started by theborg72, May 30, 2012.

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

    Instead of
    1
    2
    3
    4
    5
    6

    I want
    12345
    space to make advertising
    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
     
    theborg72, May 30, 2012 IP