PHP Codeigniter error: call to undefined method ci_db_mysql_driver::result()
Your code here is wrong:
$this->db->where('email_id', $email);$this->db->limit(1);$query = $this->db->from('lp_user_master');$this->get();
Should be, instead:
$this->db->where('email_id', $email);$this->db->from('lp_user_master'); $this->db->limit(1);$query = $this->db->get();
Now you can call $query->result()
, because the result resource is there after you actually get the table results