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. Quote 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."'/>"; ?> Quote 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."'/>"; ?> Quote Link to comment https://forums.phpfreaks.com/topic/216593-getting-images-from-database/#findComment-1126056 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.