Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
TimeOutAdmin
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
TimeOut
TimeOutAdmin
Commits
7d25bcdb
Commit
7d25bcdb
authored
Dec 20, 2019
by
Jansa Jose
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
j : flight apis error
parent
8dd815b2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
FlightServices.php
application/controllers/FlightServices.php
+1
-1
FlightServices_model.php
application/models/FlightServices_model.php
+1
-1
No files found.
application/controllers/FlightServices.php
View file @
7d25bcdb
...
...
@@ -108,7 +108,7 @@ class FlightServices extends CI_Controller {
public
function
flight_book
(){
$data
=
(
array
)
json_decode
(
file_get_contents
(
'php://input'
));
$data
[
'auth_token'
]
=
$this
->
auth_token
;
$res
=
$thi
a
->
FlightServices_model
->
flight_book
(
$data
);
$res
=
$thi
s
->
FlightServices_model
->
flight_book
(
$data
);
if
(
$res
[
'status'
]
==
1
){
$this
->
response
(
$res
[
'data'
]);
}
else
{
...
...
application/models/FlightServices_model.php
View file @
7d25bcdb
...
...
@@ -197,7 +197,7 @@ class FlightServices_model extends CI_Model {
try
{
$cond
=
''
;
if
(
isset
(
$data
[
'query'
])
&&
!
empty
(
$data
[
'query'
])){
$cond
=
"WHERE airport_code LIKE '%"
.
$data
[
'query'
]
.
"%' OR airport_name LIKE '%"
.
$data
[
'query'
]
.
"%'"
;
$cond
=
"WHERE airport_code LIKE '%"
.
$data
[
'query'
]
.
"%' OR airport_name LIKE '%"
.
$data
[
'query'
]
.
"%'
OR city LIKE '%"
.
$data
[
'query'
]
.
"%'
"
;
}
$sql
=
"SELECT id FROM airport_details
$cond
"
;
$count
=
$this
->
db
->
query
(
$sql
)
->
num_rows
();
...
...
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