PLEASE I Need Help with CurrentRow Issue

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default PLEASE I Need Help with CurrentRow Issue

    I would like to display 6 records in row then go to the next row. I would like
    to do this without using a table. I would also like to me able to drop the
    hyphen - after the 6th record and the last row. I am working with a table now.
    I would like to discard the table. Here is my code.

    <table border="0">
    <tr> <cfoutput query="Recordset2">
    <td align="center">
    <a href="#Recordset2.BAFilename#?ID=#Recordset2.ID#<c fif
    recordset2.tablealign IS
    ""><cfelse>&tablealign=#Recordset2.tablealign# </cfif><cfif recordset2.colnbr IS
    ""><cfelse>&colnbr=#Recordset2.colnbr#</cfif><cfif Recordset2.linenbr IS
    ""><cfelse>&linenbr=#Recordset2.linenbr#</cfif>" <cfif url.ID EQ
    #RecordSet2.ID#>style="color:##008062"<cfelse>styl e="color:##666699"</cfif>>#Rec
    ordset2.PortfolioTexT#</a> -
    </td>
    <cfscript>
    if (Recordset2.CurrentRow mod 6 eq 0 AND NOT Recordset2.CurrentRow eq
    Recordset2.RecordCount) {
    writeoutput("</tr><tr>");
    }
    </cfscript>
    </cfoutput> </tr>
    </table>

    murpg Guest

  2. Similar Questions and Discussions

    1. CurrentRow problem in a random question list
      Hi: I found a free source code of a coldfusion app and it works very fine and shows a list of random questions form a database but the prblem is it...
    2. Help PLEASEEEEEE With CurrentRow Issue
      I would like to display 6 records in row then go to the next row. I would like to do this without using a table. I would also like to me able to...
    3. CurrentRow Problem
      I would like to display 6 records in row then go to the next row. I would like to do this without using a table. I would also like to me able to...
    4. CurrentRow
      In the tutorial the author says: The CurrentRow variable is one of a few variables that ColdFusion automatically exposes that provide information...
    5. CFLOOP/CURRENTROW
      I have a LOOP that runs over a query and I use CURRENTROW so that I can then use MOD on it so I can utilize repeating ARRAY data to change the color...
  3. #2

    Default Re: PLEASE I Need Help with CurrentRow Issue

    <cfoutput query="recordset2">
    #whatever#<cfif recordset2.currentrow mod 6 neq 0> - <cfelse><br></cfif>
    </cfoutput>

    Also, you don't need to crosspost. One post is sufficient.
    Kronin555 Guest

  4. #3

    Default Re: PLEASE I Need Help with CurrentRow Issue

    Sorry about the cross posts I was desperate to get this done. Thank you for your help.
    murpg Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139