problem pulling text file from database

Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default problem pulling text file from database


    Please keep it simple - noob in the house

    Hi everyone - im trying to display a text file that i have save as a
    hyperlink.

    I cant seem to get the contents of the file just the hyperlink address

    <cfif isdefined("id")>
    <cfif isnumeric(id)>
    <cfquery name="qGetItem" datasource="#application.ds#">
    SELECT *
    FROM oshimi_products
    WHERE frn_category_id = frn_category_id</cfquery>
    <cfif qGetItem.recordcount gt 0>



    <table class="symtable"width="360px" >

    <cfoutput query="qGetItem">


    <tr>
    <td>#ProductName#</td>
    <td>#qGetItem.ProductDescription#</a></td>

    </tr>
    </td>

    </cfoutput>
    </table>
    </cfif>
    </cfif>
    </cfif>



    * the product description contains the hyperlink to the file.

    Any ideas would be most appreciated

    Mark

    quiero mas Guest

  2. Similar Questions and Discussions

    1. Pulling from Database
      ok, Im a newbie but... I have an Access DB with products set up in different categories. On my index page, I want to pull the names of the...
    2. Pulling BLOBs from Database
      Hi guys, Any help here would be most appreciated. I have a table, one field of which is type BLOB. I wish to extract this data using a Coldfusion...
    3. Javascript pulling from ColdFusion Database
      I'm having an issue here. I have a javascript that adds rows when a button is pressed, but I also have a dropdown box that reads from the database....
    4. Problem with Access Database With Linked Text File
      Hi, I'm using an Access 2000 database with my ASP application, and the db has a link to a text file. Previously, the text file and the db were...
    5. Pulling images out of a database
      Andre: Don't store the images. Store the image names and just upload the images. Link to them using the image name. There are extensions...
  3. #2

    Default Re: problem pulling text file from database

    Hi


    * the product description contains the hyperlink to the file.

    what do you mean by this word. do you mean to say that you want to display
    a link to the file or you want to display the file contents as text which will
    have the link?
    can you post it clearly?

    if the description is having the link then display it directly like this.

    <td><a
    link="#qGetItem.ProductDescription#">#qGetItem.Pro ductDescription#</a></td>



    vkunirs Guest

  4. #3

    Default Re: problem pulling text file from database

    Hi
    In my database there is a field which has links to articles - these articles
    have been saved as simple text.
    When a user selects the month in which the article corresponds to i want the
    text from the article to be displayed in a cfm page so that the user can read
    it.

    example
    archive page
    months - october november december
    choose - october
    october 's article is displayed.


    Im sorry i wasnt very clear

    Thank Mark

    quiero mas Guest

  5. #4

    Default Re: problem pulling text file from database

    To retrieve the contents of a file, you could use the cfcontent tag - If you
    don't know how to use this tag have a look on LiveDocs for more information:
    [url]http://livedocs.macromedia.com/coldfusion/[/url]

    cheers.


    efecto747 Guest

  6. #5

    Default Re: problem pulling text file from database

    Thanks for the advice - actually I found a tutorial at easycfm.com which seems to be what i need - if i run into trouble I be posting again.

    Thanks for the Advice
    Mark
    quiero mas 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