Passing Database Value to another page

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

  1. #1

    Default Passing Database Value to another page

    Hi

    I am retrieving records 3 fields out of 5 from the database in the main page.
    I want when the user click on the one of the heading field record displayed in
    main page.. my user should be able to go to new page where in only details of
    the certain record which is clicked is displayed..

    please help.. urgency.. thanks in advance

    Viky Guest

  2. Similar Questions and Discussions

    1. problem with polish letters passing to database
      hi. I have problem with polish letters like '?????????' passing from flex to CF script writing them to database . All I get is a string like...
    2. passing data through a database
      Hi: I made one page that passes data through a form to another page. The destination (confirmation) page checks if the user filled the form or not...
    3. Passing database resource to object (OO)
      Wan I insatiate an object I want to pass a database resource that can be used throughout the object. The below code should indicate what I want but...
    4. HELP! Passing from database to asp page allowing user input then passing to another database.
      My big problem is I'm a newbie working with someone else's code.(See code below) What I want to do is for the records that have a purchase order...
    5. Passing database info to page allow user input then pass into another database
      Hi I really am going crazy! I'm using VBScript, ASP, and SQL My page reminds me of a shopping cart but looking at shopping cart examples has not...
  3. #2

    Default Re: Passing Database Value to another page

    Do you have an id of the headline content that links from the news table to the
    headlines table? For example, I would do the following:

    <cfquery name="headlines" datasource="asian-db">
    SELECT Headline, subheadline, Contributed, Details, headline_id
    FROM news
    WHERE Category = 'headlines'
    </cfquery>

    <cfoutput query="headlines">
    <tr>
    <td class="style6"><a
    href="news.cfm?headline_id=6">#headlines.Headline# </a></td>
    </tr></cfoutput>

    With the news.cfm page reading the headline_id=6 and reporting the content
    from the table with that id.

    Does that help?

    TimMcGeary 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