![]() |
img() with link? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: img() with link? (/showthread.php?tid=55237) |
img() with link? - El Forum - 10-16-2012 [eluser]jurlan[/eluser] hi all. I have the following piece of code: Code: <?php There will be 4 images in the array. Is there any way I can add a link to each image that will be in the array? Thanks in advance! img() with link? - El Forum - 10-16-2012 [eluser]noslen1[/eluser] What about Code: echo anchor('where_to_go', img($val)); img() with link? - El Forum - 10-16-2012 [eluser]jurlan[/eluser] yes, but where to put the 'where_to_go' in the array for each image? img() with link? - El Forum - 10-16-2012 [eluser]egy_programozo[/eluser] like this: Code: foreach ($image_properties as $val) img() with link? - El Forum - 10-17-2012 [eluser]jurlan[/eluser] Oh my ... I just have known that :/ Code: echo(anchor($href, img($val), 'target="_blank"')); Does the trick ![]() Thanks a lot mister! |