Say I have a database table with three columns: ID, Name, and Age. I need to find the user with a specific (unique) ID, and then return the age. Currently, I am using the fo
you can use row() instead of result().
$this->db->where('id', '3'); $q = $this->db->get('my_users_table')->row();