Commit 51104d6b by Jansa Jose

location

parent e1643e33
......@@ -369,13 +369,11 @@ class Webservice_model extends CI_Model {
}
if($ress == 'true'){
$this->db->select("tbl_registration.*,CAST(AES_DECRYPT(`tbl_registration.dob`,'Ptf/PWNWrULQT72syxfaaBRTS9JbiKrj9dfuVEvT3rA') as CHAR) as dob_new,tbl_authtoken.userid ,tbl_authtoken.authtoken");
$this->db->select("tbl_registration.*,tbl_authtoken.userid ,tbl_authtoken.authtoken");
$this->db->join('tbl_authtoken', 'tbl_authtoken.userid = tbl_registration.id');
$query = $this->db->get_where("tbl_registration",array('tbl_registration.id'=>$query->id))->row_array();
$query['name'] = decrypt_data($query['name']);
$query['rg'] = decrypt_data($query['rg']);
$query['dob'] = $query['dob_new'];
unset($query['dob_new']);
$query['gender'] = decrypt_data($query['gender']);
$query['weight'] = decrypt_data($query['weight']);
$query['height'] = decrypt_data($query['height']);
......
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