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
346c9102
Commit
346c9102
authored
6 years ago
by
Jansa Jose
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
registration
parent
0c3b0b37
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
Webservice_model.php
application/models/Webservice_model.php
+7
-6
No files found.
application/models/Webservice_model.php
View file @
346c9102
...
...
@@ -109,14 +109,15 @@ class Webservice_model extends CI_Model{
$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
();
$num2
=
$this
->
db
->
where
(
array
(
'phone_no'
,
$data
[
'phone_no'
],
'status'
=>
'1'
))
->
get
(
'users'
)
->
num_rows
();
$num1
=
$this
->
db
->
where
(
array
(
'email'
=>
$data
[
'email'
],
'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
){
$result
=
array
(
'status'
=>
'error'
,
'message'
=>
'username Already Exists'
);
}
elseif
(
$num1
>
0
){
$result
=
array
(
'status'
=>
'error'
,
'message'
=>
'username Already Exists'
);
}
else
if
(
$num1
>
0
){
$result
=
array
(
'status'
=>
'error'
,
'message'
=>
'Email Already Exists'
);
}
elseif
(
$num2
>
0
){
}
else
if
(
$num2
>
0
){
$result
=
array
(
'status'
=>
'error'
,
'message'
=>
'Phone Number Already Exists'
);
}
else
{
...
...
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