Jump to content

displaying DB images dynamically - HELP!


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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.