Welcome Guest, Not a member yet? Register   Sign In
Adding html Around a Table Column
#7

[eluser]thatguy142[/eluser]
Sorry to clog up the forum with so many self-responses. I've solved the problem. I was mixing up the syntax between $query->result() and $query-result_array(). Here's the final solution:

Code:
$query = $this->db->get('jobs', $config['per_page'], $this->uri->segment(3));
            
      $result = $query->result_array();
            
      foreach ($result as &$row) {
          $row['title'] = anchor('jobs/edit/'.$row['id'],$row['title']);
      }    
      
return $result;

I hope this helps someone in the future!


Messages In This Thread
Adding html Around a Table Column - by El Forum - 07-20-2011, 02:24 PM
Adding html Around a Table Column - by El Forum - 07-20-2011, 02:31 PM
Adding html Around a Table Column - by El Forum - 07-20-2011, 06:35 PM
Adding html Around a Table Column - by El Forum - 07-21-2011, 06:39 AM
Adding html Around a Table Column - by El Forum - 07-21-2011, 09:08 AM
Adding html Around a Table Column - by El Forum - 07-21-2011, 09:32 AM
Adding html Around a Table Column - by El Forum - 07-21-2011, 09:38 AM



Theme © iAndrew 2016 - Forum software by © MyBB