If your using the $data array in your MY_Controller then you need to call it using $this->data
PHP Code:
public function viewexisting()
{
$query = $this->db->query("SELECT * FROM docs");
return $query->result_array();
}
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )