Jump to content

PHP & MySQL images


yddib

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.