The problem you are facing is not so closely related to Codeigniter in the specific and in the database.
This is, first of all, a standard PHP error, for general information see
In your cases - just forget Codeigniter for a moment - this means that $this has a bot with any member ->db or ->load , lines with code that don't execute:
$this->db->where('email', $this->input->post('email')); $this->load->database();
Obviously, this requires further debugging. Why are these libraries not loading? Why can't download database?
Well, actually it requires further debugging. In my eyes there is no point in asking in the comments, other users can give only good answers, since you provide good information in your question. But asking a question is always limited, of course.
Perhaps, first of all, post the full code of your model class. It may just be the model class itself, which is already spinning it. Something a fresh pair of eyes here is more quickly detected.
But there is no guarantee for this, just an opportunity. You can break it in other places. They are difficult to achieve, so itβs best for you to do this with a debugger like Xdebug in your development environment.
hakre source share