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