Skip to content
Snippets Groups Projects
Commit a9a5d3c9 authored by Muhammad Umar Fariz Tumbuan's avatar Muhammad Umar Fariz Tumbuan
Browse files
parents 5812c6c8 d454e976
1 merge request!45OneHundred - 13515005 - Husnulzaki Wibisono Haryadi
......@@ -7,14 +7,18 @@
$dest_city = $_POST['destination'];
$score = $_POST['rating'];
$comment = $_POST['comment'];
$date = date("Y-m-d")
$date = date_create() -> format("Y-m-d");
$insert_order_query = mysqli_query($con, "
INSERT INTO order (dest_city, pick_city, score, comment, driver_id, cust_id, date)
VALUES ($dest_city, $pick_city, $score, $comment, $driver_id, $cust_id)
") or die(mysqli_error());
INSERT INTO `order`(dest_city, pick_city, score, comment, driver_id, cust_id, date)
VALUES ('".$dest_city."', '".$pick_city."', '".$score."', '".$comment."', '".$driver_id."', '".$cust_id."', '".$date."')
") or die(mysqli_error($con));
header("Location : order.php")
header("Location : order.php");
if ($insert_order_query) {
} else {
echo 'wrong hole';
}
mysqli_close($con);
?>
\ No newline at end of file
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