Commit 94dfe611 by Jansa Jose

exam

parent 6e0d7946
......@@ -11,9 +11,11 @@ class Exam_model extends CI_Model {
if($check_exam_name->num_rows() > 0){
return false;
}else{*/
if($this->db->insert('tbl_exams',array('exam_procedure'=>encrypt_data(ucfirst($examData['exam_procedure'])),'observation'=>encrypt_data(ucfirst($examData['observation']))))) {
return true;
}
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; }
// if($this->db->insert('tbl_exams',array('exam_procedure'=>encrypt_data(ucfirst($examData['exam_procedure'])),'observation'=>encrypt_data(ucfirst($examData['observation']))))) {
// return true;
// }
//}
}
function get_all_exams(){
......
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