Commit 17852c54 by Jansa Jose

examm admin

parent 04ff4c6f
...@@ -14,7 +14,7 @@ class Exam_model extends CI_Model { ...@@ -14,7 +14,7 @@ class Exam_model extends CI_Model {
$exam_procedure = ucfirst($examData['exam_procedure']); $exam_procedure = ucfirst($examData['exam_procedure']);
$observation = ucfirst($examData['observation']); $observation = ucfirst($examData['observation']);
if($this->db->query("INSERT INTO `tbl_exams`(`exam_procedure`, `observation`) VALUES (AES_ENCRYPT(".$exam_procedure.",'Ptf/PWNWrULQT72syxfaaBRTS9JbiKrj9dfuVEvT3rA'),(AES_ENCRYPT(".$observation.",'Ptf/PWNWrULQT72syxfaaBRTS9JbiKrj9dfuVEvT3rA'))")){ if($this->db->query("INSERT INTO `tbl_exams`(`exam_procedure`, `observation`) VALUES (AES_ENCRYPT('".$exam_procedure."','Ptf/PWNWrULQT72syxfaaBRTS9JbiKrj9dfuVEvT3rA'),AES_ENCRYPT('".$observation."','Ptf/PWNWrULQT72syxfaaBRTS9JbiKrj9dfuVEvT3rA'))")){
return true; return true;
} }
// if($this->db->insert('tbl_exams',array('exam_procedure'=>encrypt_data(ucfirst($examData['exam_procedure'])),'observation'=>encrypt_data(ucfirst($examData['observation']))))) { // if($this->db->insert('tbl_exams',array('exam_procedure'=>encrypt_data(ucfirst($examData['exam_procedure'])),'observation'=>encrypt_data(ucfirst($examData['observation']))))) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment