Display Database information as link

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default Display Database information as link

    I am trying to display URLs brought in from a database as hyperlinks on a page.
    If I make the text representing the URL static (the same for all) then it's ok.
    (See 'click here' in the code). But if I put the dynamic information in, then
    nothing is displayed. (substitute 'click here' for '<%=(All_Open...')

    <td width="788"><div align="justify"><span class="index_text"><span
    class="news_title">Hyperlink:</span></span> <a
    href="<%=(All_Open_Calls.Fields.Item("Hyperlink"). Value)%>" target="_blank">
    Click here </a> </div></td>

    Thank you for your help

    Yorkshire Newbie Guest

  2. Similar Questions and Discussions

    1. Showing the email link from a database link
      Hi Does anyone know how to have an email link show when showing the databse info in a repeating table. Here is the link...
    2. Form information into a database and a contract
      Hello, 1. I have a form with customer and orderinformation. The form information goes all to an access database directly. 2. The next is a...
    3. How do I display this information?
      Okay, I have a ShoppingCartDetails table. The shopping cart lists photographic prints. There may be one image with more than one line item, or more...
    4. Updating database information
      I am trying to collect information from a form on one page and then pass it to the page with the code below for processing. I can get the data to...
    5. Add a database as a table of information
      I have an Access database that I would like to simply add to a table so the content of the database can be listed, while exluding some of the...
  3. #2

    Default Re: Display Database information as link

    Yorkshire,

    After the target="_blank"> instead of click here, you need to put in your
    record set. For example, you may want to try the following code:

    <a href="<%=(All_Open_Calls.Fields.Item("Hyperlink"). Value)%>"
    target="_blank"> <%=(All_Open_Calls.Fields.Item("Hyperlink").Value) %></a>

    This will then create the link that will also have the hyperlink info from
    your database.

    I did something similar to this a while back and had to pull out my old code.
    Are you plugging into the db the actual hyoerlink or just text? I also had
    mine pulling from the database the record by ID number, rather than coding into
    the db the actual hyperlink.

    Let us know how it goes.

    wizardofdata Guest

  4. #3

    Default Re: Display Database information as link

    That has helped, thank you. I realised that I had the 'hyperlink' info in the
    database stored as memo rather than a 255 character text. I switched that over
    and combined with your suggestion, everything works great. Thank you for your
    help!

    Yorkshire Newbie Guest

  5. #4

    Default Re: Display Database information as link

    My pleasure!
    wizardofdata 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