Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
joyride phase2
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
Jansa Jose
joyride phase2
Commits
6a2b193d
Commit
6a2b193d
authored
Dec 06, 2018
by
Jansa Jose
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into 'dev_production'
registration See merge request
!52
parents
e202ea1a
346c9102
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
Webservice_model.php
application/models/Webservice_model.php
+6
-5
No files found.
application/models/Webservice_model.php
View file @
6a2b193d
...
@@ -109,14 +109,15 @@ class Webservice_model extends CI_Model{
...
@@ -109,14 +109,15 @@ class Webservice_model extends CI_Model{
$num
=
$this
->
db
->
where
(
array
(
'username'
=>
$data
[
'username'
],
'status'
=>
'1'
))
->
get
(
'users'
)
->
num_rows
();
$num
=
$this
->
db
->
where
(
array
(
'username'
=>
$data
[
'username'
],
'status'
=>
'1'
))
->
get
(
'users'
)
->
num_rows
();
$num1
=
$this
->
db
->
where
(
array
(
'email'
,
$data
[
'email'
],
'status'
=>
'1'
))
->
get
(
'users'
)
->
num_rows
();
$num1
=
$this
->
db
->
where
(
array
(
'email'
=>
$data
[
'email'
],
'status'
=>
'1'
))
->
get
(
'users'
)
->
num_rows
();
$num2
=
$this
->
db
->
where
(
array
(
'phone_no'
,
$data
[
'phone_no'
],
'status'
=>
'1'
))
->
get
(
'users'
)
->
num_rows
();
// echo $this->db->last_query();
$num2
=
$this
->
db
->
where
(
array
(
'phone_no'
=>
$data
[
'phone_no'
],
'status'
=>
'1'
))
->
get
(
'users'
)
->
num_rows
();
//echo $num."-".$num1."-".$num2;
if
(
$num
>
0
){
if
(
$num
>
0
){
$result
=
array
(
'status'
=>
'error'
,
'message'
=>
'username Already Exists'
);
$result
=
array
(
'status'
=>
'error'
,
'message'
=>
'username Already Exists'
);
}
elseif
(
$num1
>
0
){
}
else
if
(
$num1
>
0
){
$result
=
array
(
'status'
=>
'error'
,
'message'
=>
'Email Already Exists'
);
$result
=
array
(
'status'
=>
'error'
,
'message'
=>
'Email Already Exists'
);
}
elseif
(
$num2
>
0
){
}
else
if
(
$num2
>
0
){
$result
=
array
(
'status'
=>
'error'
,
'message'
=>
'Phone Number Already Exists'
);
$result
=
array
(
'status'
=>
'error'
,
'message'
=>
'Phone Number Already Exists'
);
}
else
{
}
else
{
...
...
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