Commit 04ff4c6f by Jansa Jose

examm

parent 94dfe611
......@@ -11,8 +11,12 @@ class Exam_model extends CI_Model {
if($check_exam_name->num_rows() > 0){
return false;
}else{*/
if($this->db->query("INSERT INTO `tbl_exams`(`exam_procedure`, `observation`) VALUES (AES_ENCRYPT(ucfirst($examData['exam_procedure']),'Ptf/PWNWrULQT72syxfaaBRTS9JbiKrj9dfuVEvT3rA'),(AES_ENCRYPT(ucfirst($examData['observation']),'Ptf/PWNWrULQT72syxfaaBRTS9JbiKrj9dfuVEvT3rA'))")){
return true; }
$exam_procedure = ucfirst($examData['exam_procedure']);
$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'))")){
return true;
}
// if($this->db->insert('tbl_exams',array('exam_procedure'=>encrypt_data(ucfirst($examData['exam_procedure'])),'observation'=>encrypt_data(ucfirst($examData['observation']))))) {
// return true;
// }
......
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