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! Quote Link to comment 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? Quote Link to comment 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. Quote Link to comment 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 Quote Link to comment 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.