From 43dea9f661048b40779c4519031e428a3327ddc9 Mon Sep 17 00:00:00 2001 From: gandhimathi Bharathirajan Date: Fri, 7 Apr 2017 16:09:29 +0530 Subject: [PATCH] add Employee Added --- application/controllers/Employeedetails.php | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) 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';