diff --git a/application/controllers/Employeedetails.php b/application/controllers/Employeedetails.php index 5aa50e98..cfb6e031 100644 --- a/application/controllers/Employeedetails.php +++ b/application/controllers/Employeedetails.php @@ -169,8 +169,18 @@ class Employeedetails extends BaseController $this->loadViews("addemployee", $this->global, $data, NULL); } } - - + /** + * This function is used to check whether the Employee is existing in the database or not */ + function CheckEmail() + { + $id = $this->input->post('id'); + $this->load->model('employeedetails_model'); + $query = $this->employeedetails_model->checkMailExists($id ); + + $query = $query[0]['EmailId']; + print_r($query); + + } function pageNotFound() { $this->global['pageTitle'] = 'CodeInsect : 404 - Page Not Found';