Results 1 to 3 of 3

Thread: link image

  1. #1

    link image

    I'm struggling, can't figure out how to link the image from mysql to the table field. Not sure what the url should look like in the mysql "image" field. Also not sure what the php code
    <td width="15%"><?php echo $row_Recordset1['Product']; ?></td>
    <td width="85%"><?php echo $row_Recordset1['image']; ?></td>
    should be to display the image.

    All I get when I preview the file is the text from the mysql image field
    Attached Thumbnails Attached Thumbnails Screen shot 2013-10-16 at 12.15.03 PM.png  

  2. #2
    Join Date
    Nov 2009
    <td width="85%"><?php echo $row_Recordset1['image']; ?></td>
    should be something like

    <td width="85%"><img src="<?php echo $row_Recordset1['image']; ?>" ></td>

  3. #3
    Quote Originally Posted by n3r0x View Post
    <td width="85%"><?php echo $row_Recordset1['image']; ?></td>
    should be something like

    <td width="85%"><img src="<?php echo $row_Recordset1['image']; ?>" ></td>
    On top of that, going off your image url it shows "htdocs/..." and I don't know if that is going to work. Usually the image url is referenced from the working/web directory, not the top level.

    You can always try copying and pasting for testing:

    <td width="85%"><img src="htdocs/HH_Tearsheet/AB_CarpentersBench_1.jpg" ></td>
    If it works, then use the code n3r0x pasted. You may need to change it up using substring or something to just get the image name if it doesn't work.
    Managed Service Provider -
    Public & Private Cloud
    Solutions | SSD SANs | High IOP's | CDN Solutions
    Phoenix/Chandler AZ Colocation | 48U Cabinets | Data Halls | TIA-942 Tier 4 Facility

Similar Threads

  1. Text link vs image link
    By inblues in forum SEO / SEM Discussions
    Replies: 22
    Last Post: 02-23-2011, 05:30 PM
  2. image in spreadsheet become a link
    By hoachen in forum Programming Discussion
    Replies: 1
    Last Post: 04-24-2006, 01:54 PM
  3. Image with several link parts
    By macfan in forum Web Design and Content
    Replies: 6
    Last Post: 07-04-2004, 10:11 AM
  4. Link for CacheRaq2 image ?
    By Dalek in forum Dedicated Server
    Replies: 1
    Last Post: 06-10-2003, 03:36 PM

Posting Permissions

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