I can't seem to find the documentation laying this out clearly.
public function get_user_id_from_username($username){
$this->db->where('username', $username);
$this->db->select('id');
$query = $this->db->get('users');
}
Quite simply, I want to return the id that I have just selected from the database. Can anyway tell me how I get access to that id?
Thanks.