title: Image in Code Igniter anchor() function
body: <p>I have a model to fetch data from mysql database. I am using the table and pagination library to display data. When displaying the data there is a column called "DELETE", which is used for deleting each rows. Instead of using the text "DELETE" I want to use an image. I have tried a lot to add it in the model but it is not working. Would you please kindly help me?</p>
  
  <p>Thanks in Advance :)</p>
  
  <pre><code>function batch_list()
  {       
      $config['per_page'] = 15;
      $this-&gt;db-&gt;select('batchname, class, batchinstructor');
      $this-&gt;db-&gt;order_by("batchid", "desc"); 
      $rows = $this-&gt;db-&gt;get('batch',$config['per_page'],$this-&gt;uri-&gt;segment(3))-&gt;result_array();
  
      $sl = $this-&gt;uri-&gt;segment(3) + 1; // so that it begins from 1 not 0
      foreach ($rows as $count =&gt; $row)
          {
              array_unshift($rows[$count], $sl.'.');
               $sl = $sl + 1;
  
  $rows[$count]['batchname'] = anchor('batch_list/get/'.$row['batchname'],$row['batchname']);
  $rows[$count]['Edit'] = anchor('update_student/update/'.$row['batchname'],'Edit');
  $rows[$count]['Delete'] = anchor('report/'.$row['batchname'],'&lt;img src="base_url().support/images/icons /cross.png" alt="Delete" /&gt;"'); //&lt;&lt;&lt; This is where I actually tried/want to add the image
  
  
              }
          return $rows;
      }
  </code></pre>