Jump to content

image not showing <img src='".$image."' alt=\"Image Unavailable\" />


fireice87

Recommended Posts

Hey

Im trying to pull an image path out of my database and use it with 'img src' to display an image.

The data is coming from the database because all the other data is displaying fine have triple checked for typos and tried lots of varations on img src='".$image."' , img src='$image' , ".$image." .etc

 

heres the code in question:

echo "<td width=\"160\" height=\"150\" rowspan=\"5\" > <img src='".$image."' alt=\"Image Unavailable\" />   </td>";

 

The alt message does show

 

Thanks for any help

 

Edit: also have tested by typing <img src=\"Images/imagename.gif\" to make sure the file path from the database is correct

Link to comment
https://forums.phpfreaks.com/topic/100698-image-not-showing/
Share on other sites

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.