Reply to Re: Retrieve image URL

Your name:

Reply:


Posted by Ron on 04/30/07 13:46

On 30 Apr 2007 04:48:38 -0700, Captain Paralytic
<paul_lautman@yahoo.com> wrote:

>On 30 Apr, 06:34, Ron <nom...@cox.net> wrote:
>> On Sun, 29 Apr 2007 19:48:14 -0700, Ron <nom...@cox.net> wrote:
>> >Hi everyone,
>>
>> >I have a db that I can't retrieve an image url from. I have retrieved
>> >a url for a map link but for some reason can't make this work.
>>
>> >I use phpmyadmin for my data entry and store my url like
>> >www.mysite.com/image/image.jpg
>>
>> >Should I do it differently? include the http://???
>> >Here is my code to retrieve picture URL:
>> >echo "<img src=".stripslashes($row["icon_url"]).">";
>>
>> >Basically have a default icon unless I save a thumbnail and put that
>> >url in the db.
>>
>> >My link code that does work:
>> >echo "<a href=
>> >".stripslashes($row["map_url1"]).">".stripslashes($row["url_name1"])."</a>­";
>>
>> >This gonna make me crazy!
>>
>> >thx for any help.
>>
>> OK,
>> I made this work.
>> 1. Make sure the file you are linking to is actually on the server!
>> 2. Also... Case Sensitive!
>> 3. Man am I tired.
>> Tried the link without th http:// and it didn't work.
>>
>> Is there a better way than what I have shown?
>>
>> thx!- Hide quoted text -
>>
>> - Show quoted text -
>
>If you don't store the http://, how are you going to know what sort of
>URL it is?
Was tired by then so i would include it lthough I did try just
images/image_name.jpg and it worked fine.

Mostly shrug my shoulders when I finally get something to work :)

Now my challenge is to read file names from a directory and display
them. This would be within an array. Can that work? Basically might
have 10 pictures, or 2 or 100. So I think in my record I need to make
a reference to where the picture for that record are kept. Like images
for 1937 I could store http://www.mysite.com/images/1937 or maybe just
images/1937.
So when my first array is reading the stuff from the DB can I also
have another array filled with this directory reference for the
picures? That would be cool.

Thanks

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация