You are here: Re: Retrieve image URL « PHP SQL « IT news, forums, messages
Re: Retrieve image URL

Posted by Ron on 04/30/07 05:34

On Sun, 29 Apr 2007 19:48:14 -0700, Ron <nomail@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!

 

Navigation:

[Reply to this 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

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