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.
|
|