Jump to content

Need Help Adding "href=" To A Variable


sildona

Recommended Posts

The following

 


echo "<img src='".$image."'     height='200px' />";

 

shows an image from a database.

 

How do I get a link to automatically add itself to the image? I would have to enter the URL address into the database and call that address into a variable then href=$linkvariable to the above img source. Correct?

Link to comment
https://forums.phpfreaks.com/topic/269909-need-help-adding-href-to-a-variable/
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.