slj90 Posted January 17, 2010 Share Posted January 17, 2010 Hi, I want to get a URL that is in my database and use it to display a picture The code I tryed that doesn't work: print "<br>Product Image: <img src="" . $row["ProductImage"] . "">"; Thanks Link to comment https://forums.phpfreaks.com/topic/188773-using-the-url-from-a-field-in-a/ Share on other sites More sharing options...
wildteen88 Posted January 17, 2010 Share Posted January 17, 2010 The code should be print '<br>Product Image: <img src="' . $row['ProductImage'] .'" />'; OR print "<br>Product Image: <img src=\"" . $row['ProductImage'] . "\" />"; Link to comment https://forums.phpfreaks.com/topic/188773-using-the-url-from-a-field-in-a/#findComment-996625 Share on other sites More sharing options...
slj90 Posted January 17, 2010 Author Share Posted January 17, 2010 Thanks Link to comment https://forums.phpfreaks.com/topic/188773-using-the-url-from-a-field-in-a/#findComment-996629 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.