$this->db->select("CAST(AES_DECRYPT(`exam_procedure`,'Ptf/PWNWrULQT72syxfaaBRTS9JbiKrj9dfuVEvT3rA') as CHAR) as exam_procedure,id,CAST(AES_DECRYPT(`observation`,'Ptf/PWNWrULQT72syxfaaBRTS9JbiKrj9dfuVEvT3rA') as CHAR) as observation");
$all_exams=$this->db->get('tbl_exams');
$all_exams=$this->db->get('tbl_exams');
if($all_exams->num_rows()>0){
if($all_exams->num_rows()>0){
$result=$all_exams->result_array();
$result=$all_exams->result_array();
/*echo $this->db->last_query();exit();
print_r($result);exit();*/
return$result;
return$result;
}
}
}
}
...
@@ -29,6 +38,7 @@ class Exam_model extends CI_Model {
...
@@ -29,6 +38,7 @@ class Exam_model extends CI_Model {
}
}
}
}
functionget_single_exam($id){
functionget_single_exam($id){
$this->db->select("CAST(AES_DECRYPT(`exam_procedure`,'Ptf/PWNWrULQT72syxfaaBRTS9JbiKrj9dfuVEvT3rA') as CHAR) as exam_procedure,id,CAST(AES_DECRYPT(`observation`,'Ptf/PWNWrULQT72syxfaaBRTS9JbiKrj9dfuVEvT3rA') as CHAR) as observation ");
if($this->db->query("update `tbl_exams` set `exam_procedure` = AES_ENCRYPT('".$exam_procedure."','Ptf/PWNWrULQT72syxfaaBRTS9JbiKrj9dfuVEvT3rA'),`observation` = AES_ENCRYPT('".$observation."','Ptf/PWNWrULQT72syxfaaBRTS9JbiKrj9dfuVEvT3rA') where id = $id ")){
<inputtype="text"name="exam_procedure"value="<?phpechodecrypt_data($data['exam_procedure']);?>"class="form-control required"placeholder="Enter Exams or Procedure"data-parsely-minlength="10"data-parsley-required="true">
<inputtype="text"name="exam_procedure"value="<?phpecho$data['exam_procedure'];?>"class="form-control required"placeholder="Enter Exams or Procedure"data-parsely-minlength="10"data-parsley-required="true">
@@ -1157,7 +1180,7 @@ class Home extends CI_Controller {
...
@@ -1157,7 +1180,7 @@ class Home extends CI_Controller {
}
}
$msg="Hi ".decrypt_data($check_authentic['name']).",<br><br>Your request for resetting password has been accepted. Use the following link to reset password. ".$link.". Please Do not share with anyone<br><br>Ipok Team";
$msg="Hi ".$check_authentic['name'].",<br><br>Your request for resetting password has been accepted. Use the following link to reset password. ".$link.". Please Do not share with anyone<br><br>Ipok Team";
//print_r($msg);
//print_r($msg);
...
@@ -1377,6 +1400,23 @@ class Home extends CI_Controller {
...
@@ -1377,6 +1400,23 @@ class Home extends CI_Controller {
$this->db->query("update tbl_registration set dob = AES_ENCRYPT(".$data['dob'].",'Ptf/PWNWrULQT72syxfaaBRTS9JbiKrj9dfuVEvT3rA')where id = ".$insertid);
//$this->db->query("Update tbl_doctors SET dob = AES_ENCRYPT(".$data['dob'].",".$key."), name = AES_ENCRYPT('".$data['name']."',".$key.") where id=".$insertid);