Skip to content
Snippets Groups Projects
Commit af6a9dd1 authored by Muhammad Umar Fariz Tumbuan's avatar Muhammad Umar Fariz Tumbuan
Browse files

Fix bug sign_up yang bikin error 500 kalo daftar sebagai non-driver

parent a9a5d3c9
1 merge request!45OneHundred - 13515005 - Husnulzaki Wibisono Haryadi
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
$user_id=$row['user_id']; $user_id=$row['user_id'];
if ($status == "customer") { if ($status == "customer") {
header("Location: ../order/order.php?id=$user_id"); header("Location: ../order/select_location.php?id=$user_id");
} else { } else {
$query = mysqli_query($con,"INSERT INTO driver (driver_id,total_score,votes) VALUES ('$user_id',0,0)") or die(mysqli_error($con)); $query = mysqli_query($con,"INSERT INTO driver (driver_id,total_score,votes) VALUES ('$user_id',0,0)") or die(mysqli_error($con));
if ($query) { if ($query) {
......
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