Skip to content
Snippets Groups Projects
Commit d3cedfe2 authored by Akmal Pratama's avatar Akmal Pratama
Browse files

redirect to order dest after order complete

parent 3b0392aa
Branches
No related merge requests found
......@@ -10,7 +10,7 @@
$sql = "INSERT INTO transaction (idCustomer, idDriver, orderDate, pickUp, destination, rate, comment, isShowDriverHistory, isShowCustomerHistory) VALUES ('".$id_customer."','".$id_driver."','".$date."','".$pickup."','".$dest."','".$rate."','".$comment."',1,1)";
if ($conn->query($sql) === TRUE) {
echo "<script>window.location='my_profile.php?id_active=".$_POST["id_active"]."'</script>";
echo "<script>window.location='order_destination.php?id_active=".$_POST["id_active"]."'</script>";
} else {
echo "Error: " . $sql . "<br>" . $conn->error;
}
......
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