Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
IPok_Web
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
IPok
IPok_Web
Commits
c79c45ab
Commit
c79c45ab
authored
6 years ago
by
Jansa Jose
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'jansa'
parents
3c9fa911
dc15cb19
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Patient_model.php
application/models/Patient_model.php
+4
-4
No files found.
application/models/Patient_model.php
View file @
c79c45ab
...
@@ -511,9 +511,9 @@ function insertVacation($request)
...
@@ -511,9 +511,9 @@ function insertVacation($request)
function
update_profile
(
$id
,
$data
)
function
update_profile
(
$id
,
$data
)
{
{
$date_of_birth
=
$data
[
'dob'
];
//
$date_of_birth = $data['dob'];
unset
(
$data
[
'dob'
]);
//
unset($data['dob']);
print_r
(
$id
);
exit
();
$this
->
db
->
where
(
'tbl_registration.id'
,
$id
);
$this
->
db
->
where
(
'tbl_registration.id'
,
$id
);
if
(
$this
->
db
->
update
(
'tbl_registration'
,
$data
))
if
(
$this
->
db
->
update
(
'tbl_registration'
,
$data
))
...
@@ -522,7 +522,7 @@ function update_profile($id,$data)
...
@@ -522,7 +522,7 @@ function update_profile($id,$data)
$this
->
db
->
query
(
"update tbl_registration set dob = AES_ENCRYPT("
.
$date_of_birth
.
",'Ptf/PWNWrULQT72syxfaaBRTS9JbiKrj9dfuVEvT3rA')where id = "
.
$id
);
//
$this->db->query("update tbl_registration set dob = AES_ENCRYPT(".$date_of_birth.",'Ptf/PWNWrULQT72syxfaaBRTS9JbiKrj9dfuVEvT3rA')where id = ".$id);
$result
=
array
(
'status'
=>
'success'
);
$result
=
array
(
'status'
=>
'success'
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment