Jump to content

Recommended Posts

Hi,

 

I am using Dreamweaver MX 6.1 with PHP and mysql, and I have images that have been uploaded into my database which I would like to display from a search form. The images are uploaded to a folder called \'files\' and the db field is called \'filename\'.

 

This is what I do... I create a recordset on the page and then I go- Insert

> Image > Data Source, and I select the field which has the image. All I get on my results.php page is a transparent square with a red X in it.

 

This is what I am using for my code:

<img src=\"files/<?php echo $row_rsResults[\'filename\']; ?>\">

 

Can someone please help?

 

TIA

Link to comment
https://forums.phpfreaks.com/topic/1572-displaying-db-images-dynamically-help/
Share on other sites

  • 1 month later...

Hi!

 

Well, i have a site up and running displaying images dynamically from MySQL. Though i'm not using Dreamweaver to do so.

 

I only use Dreamweaver for a nice looking template in which i echo or print the images from the DB using a search engine written in PHP.

 

Check out the site and let me know if this is what you mean.

 

www.graphicalsolutions.nl

 

Regards

 

thefisherman

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.