I'm fetching data from postgresql in codeigniter but it is just refreshing the page not giving data

controller - Select_Ctrl


 class Select_Ctrl extends CI_Controller {

 public function index()
$data['val'] = $this->Select_Model->get_data();



Model - Select_Model

 <?php  class Select_Model extends CI_Model{       

 public function get_data(){


 $query = $this->db->get('tablename');
 return $query->result_array();

View file normal form creation.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.