Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
RestoranPondokEdo
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mei Romauli Sagala
RestoranPondokEdo
Commits
39a04574
Commit
39a04574
authored
May 26, 2017
by
Mei Romauli Sagala
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edit
parent
e1eba0e4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
cek_daftar.php
cek_daftar.php
+2
-1
daftar_pesanan.php
daftar_pesanan.php
+1
-1
No files found.
cek_daftar.php
View file @
39a04574
...
...
@@ -20,6 +20,7 @@
$uname
=
$_POST
[
'username'
];
$pass
=
$_POST
[
'password'
];
$repass
=
$_POST
[
'repass'
];
$pas
=
md5
(
$pass
);
}
else
{
//otomatis mengalihkan ke halaman pendaftaran jika terjadi undefined index
header
(
"location:form_daftar.php"
);
...
...
@@ -36,7 +37,7 @@
if
(
$cek_username
==
0
){
//jika nama tidak ditemukan/belum terdaftar
//lakukan penambahan data
$id
=
$countData
+
1
;
mysqli_query
(
$koneksi
,
"INSERT INTO member VALUES('','
$nama
', '
$address
', '
$hp
', '
$uname
', '
$pas
s
', '
$email
')"
);
mysqli_query
(
$koneksi
,
"INSERT INTO member VALUES('','
$nama
', '
$address
', '
$hp
', '
$uname
', '
$pas
', '
$email
')"
);
echo
(
"<script> alert('Pendaftaran berhasil')</script>"
);
header
(
"Location: form_login.php"
);
}
else
{
...
...
daftar_pesanan.php
View file @
39a04574
...
...
@@ -40,7 +40,7 @@
if
(
$row
[
'bukti'
]
!=
NULL
&&
$row
[
'status'
]
!=
NULL
){
echo
$row
[
'status'
];
}
else
if
(
$row
[
'status'
]
!=
'Diterima'
&&
$row
[
'status'
]
==
NULL
){
else
if
(
$row
[
'
bukti'
]
!=
NULL
&&
$row
[
'
status'
]
!=
'Diterima'
&&
$row
[
'status'
]
==
NULL
){
echo
'<a href="konfirmasi.php?id='
.
$row
[
'id_pembayaran'
]
.
'" class="btn btn-success"> Konfirmasi </a>'
;
}
else
if
(
$row
[
'bukti'
]
==
NULL
&&
$row
[
'status'
]
==
NULL
){
echo
'none'
;
...
...
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