Jump to content

displaying image using url stored in database


kevdoug

Recommended Posts

Hi I fairly new to PHP and what I am trying to achieve is to retrieve an image stored on the server using the url I have stored in the database. I can retrieve the url from the database and display it in text form but I am struggling to diplay the image. I have the code I am using below.

$img = OCIResult($stmt,'IMAGE');
     
      echo $img; this will display the text e.g. C:\winter.jpg
     
echo "<img src= "$img"\" >"; This is how I am trying to display the image
     

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.