Linking Question

Hi everyone!

I need to know how to code this in CI:
<a href='customer.php'><img src='cust.jpg'></a>

from what I understood in the user guide, it is:

echo link_tag('customer.php'); echo img('cust.jpg');

is this right?

what about the </a> at the end?

im so confused

please help

ps: the user guide does not mention what to do about the </a>, nor how to link using an image.

Erm. The link tag produces a 'link' tag.

Quote:Lets you create HTML &lt;link /&gt; tags. This is useful for stylesheet links, as well as other links.

It has nothing to do with anchor tags.

it should be something like

echo anchor('test', img('images/test.gif'));

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.