Jump to content

Linking a img class


deamon1767

Recommended Posts

I have this code :

<img class= "image_frame1" src="images/groupproductimages/<?php echo $offer['cimage'];?>"  />

It pulls pics

I need the pics to link to urls

using this code

<a href="index.php?option=com_grouppurchase&view=todaysdeal&id=<?php echo $offer['cid'];?>">

I know I am missing something stupid

Link to comment
https://forums.phpfreaks.com/topic/252600-linking-a-img-class/
Share on other sites

Just put the link around the image.  Super simple basic HTML.

 

<a href="index.php?option=com_grouppurchase&view=todaysdeal&id=<?php echo $offer['cid'];?>"><img class= "image_frame1" src="images/groupproductimages/<?php echo $offer['cimage'];?>"  /></a>

 

Link to comment
https://forums.phpfreaks.com/topic/252600-linking-a-img-class/#findComment-1295023
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.