Skip to main content
Participant
May 29, 2008
Question

Need help with dynamic images

  • May 29, 2008
  • 2 replies
  • 243 views
As a newbie to DW I know I's simply doing something wrong. When building a dynamic page(php MYSQL) I cannot get the image itself to show up.

I understand that MYSQL will only hold the image path. I have a folder (images) that I save all photos to. This is in my root folder. I am using DW8. I insert a layer and then drag the pic field from the bindings panel to the selected layer.

When I upload the site the only thing that shows up is the path numbers. All the other data related to that recordset (product descriptions etc) show up just fine.

In my database the picture field is VAR CHAR. I dont know if that makes a difference.

I have spent hours trying to fix the problem to no avail.

Any help would be GREATLY appreciated.
This topic has been closed for replies.

2 replies

topsales5Author
Participant
May 31, 2008
Thanks for the reply Jeff.

I will try this and let you know the results

Mike
Inspiring
May 29, 2008
You must surround your data call with an <img> tag
Like this:
<img src="images/news/<?php echo $row_getNews['news_imageURL']; ?>" />

Jeff


"topsales5" <webforumsuser@macromedia.com> wrote in message
news:g1n82d$rfp$1@forums.macromedia.com...
> As a newbie to DW I know I's simply doing something wrong. When building a
> dynamic page(php MYSQL) I cannot get the image itself to show up.
>
> I understand that MYSQL will only hold the image path. I have a folder
> (images) that I save all photos to. This is in my root folder. I am using
> DW8.
> I insert a layer and then drag the pic field from the bindings panel to
> the
> selected layer.
>
> When I upload the site the only thing that shows up is the path numbers.
> All
> the other data related to that recordset (product descriptions etc) show
> up
> just fine.
>
> In my database the picture field is VAR CHAR. I dont know if that makes a
> difference.
>
> I have spent hours trying to fix the problem to no avail.
>
> Any help would be GREATLY appreciated.
>