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