Active record in codeigniter for fetching data from sql server?
For More Info About Database Configuration
I tried with configuration change in application/config/database.php
$active_group = "default";$active_record = TRUE;$query_builder = TRUE;
and tried with clear cache.
I you want to get all records than you don't need to write
$this->db->select('*');$this->db->from('Persons');$query = $this->db->get();$data = $query->result();print_r($data);
You can simply get by using
$query = $this->db->get('Persons');$data = $query->result();print_r($data);