homepage Welcome to WebmasterWorld Guest from 54.205.254.108
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
How to display external image link stored.
bgb76




msg:3341873
 11:04 am on May 17, 2007 (gmt 0)

Hi... Everybody... i'm a beginner and learning everything online... just few days into it i've reached to this situation i donno... how to get outta this...

could you plz get me code on to display / list External Image Link (such as image from Yahoo.com) Stored in mysql using php...

[edited by: eelixduppy at 11:19 am (utc) on May 17, 2007]
[edit reason] no URLs, please [/edit]

 

colandy




msg:3341879
 11:18 am on May 17, 2007 (gmt 0)

Using HTML you can do the following:

<img src="http://www.yahoo.com/images/image.jpg">

henry0




msg:3341893
 11:35 am on May 17, 2007 (gmt 0)

Welcome to WebmasterWorld bgb!

Your images are stored in a MySQL DB.
it is better to store in your DB the img path rather than storing the actual img as "blob"

Since you are learning
you need to
START HERE
[webmasterworld.com]

bgb76




msg:3343840
 11:50 am on May 19, 2007 (gmt 0)

Hi... Thanks colandy & Henry...

My problem is i'm not saving the image in mysql buy i'm saving the link of yahoo.com or anyother site image link text... so that my server or site get the traffic of showing up the image.

for exp table has stored data as follows:
--------------------------------------------
rno -----:----- 1245
name -----:----- Mercedec Benz
year -----:----- 2002
image -----:----- http://example.com/a/fo/ford/show_toyota_fjcruiser.jpg

but not the image

So... cud anyone plz help me with a CODE to show image use php with links in mysql on the page? PLZ...

[edited by: jatar_k at 1:16 pm (utc) on May 19, 2007]
[edit reason] no urls thanks [/edit]

nobody




msg:3343881
 1:07 pm on May 19, 2007 (gmt 0)

My problem is i'm not saving the image in mysql buy i'm saving the link of yahoo.com or anyother site image link text... so that my server or site get the traffic of showing up the image.

Could you just clarify that - you want to fetch the image from Yahoo and store it in your database, or you want the users web-browser to go and get the image from Yahoo so your web-server doesn't get the traffic?

bgb76




msg:3345195
 8:12 am on May 21, 2007 (gmt 0)

Hi... Mr. NOBODY...
My TEXT

My problem is i'm not saving the image in mysql buy i'm saving the link of yahoo.com or anyother site image link text... so that my server or site get the traffic of showing up the image.


Mr. NOBODY'S TEXT
Could you just clarify that - you want to fetch the image from Yahoo and store it in your database, or you want the users web-browser to go and get the image from Yahoo so your web-server doesn't get the traffic?

Yes... the link of image from yahoo stored in mysql should fetch the image from yahoo.com

IMAGE IS NEIGHTER STORED IN SERVER OR SITE NOR MYSQL DB only the link of the image is stored in the table:column

colandy




msg:3345292
 12:03 pm on May 21, 2007 (gmt 0)

So if the link is stored in the db. Use the following:

<img src="<?php echo $row['imglink'];?>">

$row['imglink'] being the result form your query after the fetch. the imglin field would have to hold the fold http path ot the image.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved