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
564a02f4
Commit
564a02f4
authored
Jul 31, 2018
by
Jansa Jose
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
temp
parent
b111c8cf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
Webservice_model.php
admin/application/models/Webservice_model.php
+3
-0
No files found.
admin/application/models/Webservice_model.php
View file @
564a02f4
...
...
@@ -92,6 +92,9 @@ class Webservice_model extends CI_Model {
$insertid
=
$this
->
db
->
insert_id
();
$this
->
db
->
query
(
"update tbl_doctors set dob = AES_ENCRYPT("
.
$data
[
'dob'
]
.
",'Ptf/PWNWrULQT72syxfaaBRTS9JbiKrj9dfuVEvT3rA')where id = "
.
$insertid
);
$this
->
db
->
insert
(
'tbl_clinic_doctors'
,
array
(
'doctor_id'
=>
$insertid
,
'clinic_id'
=>
0
));
$this
->
db
->
insert
(
'tbl_consultation'
,
array
(
'doctor_id'
=>
$insertid
,
'clinic_id'
=>
0
,
'date'
=>
'""'
,
'date_secondary'
=>
'""'
,
'active_schedule'
=>
0
));
$this
->
db
->
select
(
'tbl_specialization.id as specialization_id,tbl_specialization.specialization_name,tbl_doctors.*'
);
$this
->
db
->
join
(
'tbl_specialization'
,
'tbl_specialization.id = tbl_doctors. specialization'
);
$query
=
$this
->
db
->
get_where
(
"tbl_doctors"
,
array
(
"tbl_doctors.id"
=>
$insertid
));
...
...
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