I am working on a site in codeigniter.I am not so expert using framework.Here I have to check if email already exists in database.I have coded the required functionality but
You have an error in the mysql query:-
SELECT * WHERE ` = 'muraddnw@gmail.com' LIMIT 1
Your code has not specified which table to query from. So use following:-
$this->db->select('id'); $this->db->from('tablename'); $this->db->where('email', $email);
Hope this helps.