SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Zealot
    Join Date
    Aug 2009
    Posts
    159
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Display a Query on a form

    Hi
    Im wondering how I go about displaying a query the same as when I dump it out on screen, so it will display the results on a form for users to see, but not in as much detail as the query itself if that makes sence

    for example When I press send on the form I want to see everything it has sent by email

  2. #2
    SitePoint Addict
    Join Date
    Dec 2008
    Location
    Aberdeen, Scotland
    Posts
    379
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    <cfquery datasource="#application.dsn#" name="yourQuery">
    select * from user
    </cfquery>

    <table>
    <cfoutput query="yourQuery">
    <tr>
    <td>#ID#</td>
    <td>#Name#</td>
    <td>#Address#</td>
    </tr>
    </cfoutput>
    </table>

    That what you mean?

  3. #3
    SitePoint Zealot
    Join Date
    Aug 2009
    Posts
    159
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    perfect Clarkee21

    Thanks

  4. #4
    SitePoint Evangelist
    Join Date
    Mar 2007
    Posts
    584
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you are new to CF, you might want to download and/or bookmark the documentation.

    http://help.adobe.com/en_US/ColdFusi...cbec22c24-776e
    http://help.adobe.com/en_US/ColdFusi...2c24-7ff6.html


Bookmarks

Posting Permissions

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