mindfield Posted December 12, 2007 Share Posted December 12, 2007 Im trying to link an uploaded image into my code but for some reason it doesnt seem to work. When I try <img src='.$image.'> its working fine, but i want to put it into a folder and lick it from there like.. <img src=\"/news_images/".$image."> but for some reason the image/nothing is showing up at all. anyone help? Link to comment https://forums.phpfreaks.com/topic/81278-linking-images-help/ Share on other sites More sharing options...
Stooney Posted December 12, 2007 Share Posted December 12, 2007 echo '<img src="/news_images/'.$image.'">'; see how that works for ya Link to comment https://forums.phpfreaks.com/topic/81278-linking-images-help/#findComment-412533 Share on other sites More sharing options...
Northern Flame Posted December 12, 2007 Share Posted December 12, 2007 you forgot to put a " at the end, try this.... <img src=\"/news_images/".$image."\"> Link to comment https://forums.phpfreaks.com/topic/81278-linking-images-help/#findComment-412550 Share on other sites More sharing options...
mindfield Posted December 12, 2007 Author Share Posted December 12, 2007 Thanks a lot guys, it works now. Link to comment https://forums.phpfreaks.com/topic/81278-linking-images-help/#findComment-412611 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.