deamon1767 Posted December 6, 2011 Share Posted December 6, 2011 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 More sharing options...
kicken Posted December 6, 2011 Share Posted December 6, 2011 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 More sharing options...
deamon1767 Posted December 6, 2011 Author Share Posted December 6, 2011 Your awesome New i was missing something stupid Link to comment https://forums.phpfreaks.com/topic/252600-linking-a-img-class/#findComment-1295025 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.