dean7 Posted October 22, 2010 Share Posted October 22, 2010 Hi all, while I was coding a script for my website something struck me which ive not really got an idea how to code it, but anyway, in my Database ive got a table which holds image URL's but how could I echo them out in PHP which will show the image? Not just the writing. Thanks for your help. Link to comment https://forums.phpfreaks.com/topic/216593-getting-images-from-database/ Share on other sites More sharing options...
taquitosensei Posted October 22, 2010 Share Posted October 22, 2010 <?php echo "<img src='".$yourimage."'/>"; ?> Link to comment https://forums.phpfreaks.com/topic/216593-getting-images-from-database/#findComment-1125326 Share on other sites More sharing options...
OldWest Posted October 25, 2010 Share Posted October 25, 2010 I'll second what taquitosensei said, but there is probably a path you will need to have on there as well like: <?php echo "<img src='"IMAGE_PATH/$yourimage."'/>"; ?> Link to comment https://forums.phpfreaks.com/topic/216593-getting-images-from-database/#findComment-1126056 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.