Jump to content


Photo

displaying DB images dynamically - HELP!


  • Please log in to reply
1 reply to this topic

#1 lastchild

lastchild
  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 29 December 2003 - 12:23 PM

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

#2 thefisherman

thefisherman
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 01 February 2004 - 01:35 PM

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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users