Commit 4b609290 by Jansa Jose

consultaion data

parent c738dea6
......@@ -3445,9 +3445,9 @@ class Webservice_model extends CI_Model {
foreach ($xam as $key => $value) {
$this->db->select("CAST(AES_DECRYPT(observation,'Ptf/PWNWrULQT72syxfaaBRTS9JbiKrj9dfuVEvT3rA') as CHAR) as observation");
$this->db->where("CAST(AES_ENCRYPT(exam_procedure,'Ptf/PWNWrULQT72syxfaaBRTS9JbiKrj9dfuVEvT3rA') as CHAR) = '$value->exam_procedure'");
$this->db->where("CAST(AES_DECRYPT(exam_procedure,'Ptf/PWNWrULQT72syxfaaBRTS9JbiKrj9dfuVEvT3rA') as CHAR) = '$value->exam_procedure'");
$proc = $this->db->get('tbl_exams')->result();
//echo $this->db->last_query();exit();
$new['exams'][$key]['name'] = $value->exam_procedure;
foreach ($proc as $key1 => $value1) {
$new['exams'][$key]['observations'][] =$value1->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