Skip to main content
Inspiring
February 2, 2007
Question

how do i output sata from a query over 2 or more columns

  • February 2, 2007
  • 2 replies
  • 292 views
Hi have a query that returns say 30 or so records.

Now i would like to loop the query and display the data in a table which contains sat 2 columns. Can anyone help?

Thanks
    This topic has been closed for replies.

    2 replies

    Inspiring
    February 2, 2007
    <table>
    <tr>
    <cfoutput query="something">
    <td>#data#</td>
    <cfif currentrow is recordcount>
    </tr>
    <cfelseif currentrow mod2 is 0>
    </tr><tr>
    </cfif>
    </cfoutput>
    </table>
    February 2, 2007
    The code below should help.