yddib Posted September 3, 2008 Share Posted September 3, 2008 Hi, I have stored an image in a folder on the file directory. I have a link to that image in my MySQL database. When I call it, only the text link appears! Please help! Link to comment https://forums.phpfreaks.com/topic/122556-php-mysql-images/ Share on other sites More sharing options...
zq29 Posted September 3, 2008 Share Posted September 3, 2008 View the source of the page, is the path correct? Link to comment https://forums.phpfreaks.com/topic/122556-php-mysql-images/#findComment-632765 Share on other sites More sharing options...
lemmin Posted September 3, 2008 Share Posted September 3, 2008 Can you show some code? It sounds like you need to use the img tag. Link to comment https://forums.phpfreaks.com/topic/122556-php-mysql-images/#findComment-632767 Share on other sites More sharing options...
tmbrown Posted September 3, 2008 Share Posted September 3, 2008 be sure you set the queried value as the src in an image tag. <img src="<?=$yourvalue?>" /> Or <img src="<?php echo($yourvalue); ?>" /> Or if you decide to just echo it out <?php echo("<img src=\"" . $yourval . "\" />"); ?> As far as hyperlinks go, it's the same concept, simply put the output as the "href" value inside the "<a >" tag Link to comment https://forums.phpfreaks.com/topic/122556-php-mysql-images/#findComment-632769 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.