Results 1 to 6 of 6

 

Thread: how to display image as image not as blabla.com/pic.jpg via phpMyadmin & Dreamweaver

  1. #1
    Registered User

    Status
    Offline
    Join Date
    Apr 2004
    Location
    UK
    Posts
    597
    Thanks
    12
    Thanked 9 Times in 9 Posts


    Hi there

    Through gaining valuable info from some tutorials, i've managed to populate a db in phpMyadmin with a deepfeed (it's a big thing for me! )

    and also managed to create some record sets so the requested behaviours execute..
    only problem is that when i look up the page in firefox it shows the affiliate links like this:
    http://www.awin....blabla.htm

    And the images like this http://www.asite.com/images/pic.jpg as apposed to the actual image itself!

    Would you know

    1. how to display the actual image as an image and not the url to the image

    2. how to make the aff. deep links "clickable" and not like a long url? maybe the product name and image clickable also/instead of?

  2. #2
    Registered User

    Status
    Offline
    Join Date
    Nov 2003
    Location
    Market Rasen, Lincolnshire.
    Posts
    263
    Thanks
    3
    Thanked 1 Time in 1 Post
    Hi Matt

    It sounds to me as though you have forgotten to add <a href="......."> around the aff link and an <img src="...."> around the image text.

    Hope this makes sense or am I totally misunderstanding your question?
    Andy

    Make Gift Giving Personal and PersonaliseYaGifts | My New Blog about AffiliateLiving

  3. #3
    mxp
    Registered User

    Status
    Offline
    Join Date
    Dec 2004
    Posts
    34
    Thanks
    0
    Thanked 0 Times in 0 Posts
    As leaddo says it sounds like you need to add a couple of html tags to your code. If you want to display the product name rather than the url then you simply need to place the product name within the link tag.

    eg.

    <a href="url">Productname</a>

    if you want to make images clickable you need to enclose them in the link tag.

    <a href="url"><img src="imagelocation"></a>

    Hope this helps

    mxp

  4. #4
    Registered User

    Status
    Offline
    Join Date
    Apr 2004
    Location
    UK
    Posts
    597
    Thanks
    12
    Thanked 9 Times in 9 Posts
    Ok I tried putting the php tag in a href which is probably complete nonsense, like this:

    <a href="<?php echo $row_RsProducts['Link']; ?>"</a>

    not suprisingly it didn't work!

    I'd like to know how to make the image clickable with the aff. link to open in a new window, and for the image to show up as an image

    here's the code i've got:


    PHP Code:
    <?php } while ($row_RsProducts mysql_fetch_assoc($RsProducts)); ?>              
     </span></p>           </td>          
    <td width="293" valign="top"><p class="style3">
    <?php echo $row_RsProducts['Cost']; ?></p>
               <p class="style3"><?php $_GET['Link']; ?>
    <?php 
    echo $row_RsProducts['Link']; ?>
    <?php 
    echo $row_RsProducts['Image']; ?></p></td>        
      <td width="293" valign="top"><span class="style3">
    <?php echo "$row_RsProducts['Link']"?></span></td>
    Last edited by Matt Seigneur; 17-12-04 at 10:02 AM.

  5. #5
    curiouser and curiouser

    Status
    Offline
    Join Date
    Sep 2003
    Location
    uk
    Posts
    659
    Thanks
    1
    Thanked 0 Times in 0 Posts
    heres a sample from my site.

    HTH

    regards andy


    PHP Code:
    <a href="<?php echo $row_Recordset1['deepLink']; ?>" target="_blank" <img src="<?php echo $row_Recordset1['imageURL']; ?>"></a>

  6. #6
    Registered User

    Status
    Offline
    Join Date
    Apr 2004
    Location
    UK
    Posts
    597
    Thanks
    12
    Thanked 9 Times in 9 Posts
    Thanks Andy and others I used your code and edited it slightly, as it wasn't displaying properly:

    PHP Code:
    <a href="<?php echo $row_RsProducts['Link']; ?>" target="_blank">
    <?php echo $row_RsProducts['ProdName']; ?></a><a href="<?php echo $row_RsProducts['Link']; ?>" target="_blank">
    <img src="<?php echo $row_RsProducts['Image']; ?>
    border="0" /></a><a href="<?php echo $row_RsProducts['Link']; ?>"></a>&nbsp;
    now working fine!



Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Content Relevant URLs by vBSEO 3.5.0 RC2