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 Quote 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'] . "\" />"; Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.