I am getting error message: Invalid argument for foreach() in my View. I wanted to display all entries in my mysql table but i kept on getting error message. I am a newbie i
I think this code modular:
public function getAll() { $this->db->select('bcode, bname, btel, badd'); $this->db->from('branches'); $query = $this->db->get('branches'); return $this->db->query($query)->result_array(); }