HTTP Link from database record view?

Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default HTTP Link from database record view?

    Hi,
    Prompted by the superb quality of help offered here I request some advice on
    the following problem:

    I want to have the http link in my database to be clickable to those viewing
    it from the records page. To open in a new browser window.

    I'm using SQL and PHP and the code is below:

    <td><?php echo $row_event_database['Event_Date']; ?></td>

    How would I create a clickable link in the records view?

    Have searched the forum but not much help I'm afraid. Bit of a newb to most
    of this SQL.

    I'd also like to ask a second question if I may. Regarding displaying images
    in my records view? I just can't figure it out. I have a second table
    containing images of flyers, front and back. I'd like to display these images
    in the records view to the user. Maintaining the same size for all images.

    Can anyone please assist me?

    I offer sincere gratitude in exchange for advice.

    Many thanks for your time.


    h1ppy 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. Trouble with database access: can't edit record, just view it
      Hallo! I use DWMX 6.1 and use ASP VBSCRIPT files to access a MS Access 2000 database. Initially I was able to edit the records. Then I had to add...
    3. HTTP Post per record in dataset??
      What's this now? Can you reword that? Ray at home -- Will trade ASP help for SQL Server help "Clifford" <cliffordstewart@yahoo.com>...
    4. subform - datasheet view, new record at top
      Hi All Is there any way to display the "new record" (ie the blank one people type into) at the TOP rather than the BOTTOM of the datasheet view...
    5. Another user has modified the contents of this table or view; the database row you are modifying no longer exists in the database;
      Hi, I am testing a trigger that and I am getting this error message saying "Another user has modified the contents of this table or view; the...
  3. #2

    Default Re: HTTP Link from database record view?

    Just insert the URL from the database in an ordinary HTML A Link eg

    <a href="<?php echo $row_event_database['Link']; ?>" target="blank">
    <?php echo $row_event_database['Link_Description']; ?>
    </a>

    For your images, do exactly the same:

    <img src="<?php echo $row_image_table['image_url']; ?>" width='40'
    height='40'>

    You can also store the image width and height in the database fields and do
    exactly the same to insert them dynamically.


    --
    Gareth - TMM Dreamweaver
    [url]http://www.dreamweavermxsupport.com/[/url]
    [url]http://www.garethdp.com/[/url]

    PHP Login Suite V2 - 34 Server Behaviors to build a complete Login system.
    [url]http://www.phploginsuite.co.uk/[/url]

    Co-Author: Dreamweaver MX: Instant Troubleshooter - Apress
    Co-Author: Practical Intranet Development - Apress
    Co-Author: Dreamweaver MX: Advanced PHP Web Development - Apress
    Co-Author: Dreamweaver MX: PHP Web Development - Wrox


    gareth Guest

  4. #3

    Default Re: HTTP Link from database record view?

    Thanks Gareth!

    Your advice is very appreciated.
    h1ppy 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