Commit 39a04574 by Mei Romauli Sagala

edit

parent e1eba0e4
......@@ -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', '$pass', '$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{
......
......@@ -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';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment