diff --git a/.DS_Store b/.DS_Store
index e91ae6b..a71ff80 100644
Binary files a/.DS_Store and b/.DS_Store differ
diff --git a/booking.html b/booking.html
deleted file mode 100644
index 1be4d9c..0000000
--- a/booking.html
+++ /dev/null
@@ -1,178 +0,0 @@
-
-
-
-
-
-
- Booking
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/booking.php b/booking.php
index 1c1d317..9ea3e9e 100644
--- a/booking.php
+++ b/booking.php
@@ -1,34 +1,78 @@
prepare("INSERT INTO booking (date, time, text) VALUES (?,?,?)");
-
- // Bind the form values to the prepared statement
- // The "sss" means all three parameters (date, time, and text) are strings
- $query->bind_param("sss", $formatted_date, $user_time, $user_text);
-
- // Execute the query and check if it was successful
+ $query = $conn->prepare("INSERT INTO Booking (UserID, DateOfShoot, TimeOfShoot, TypeOfShoot, Message) VALUES (?, ?, ?, 'Portrait', ?)"); // TODO fix user id session
+ $query->bind_param("isss", $user_id,$formatted_date, $user_time, $user_text);
+
if ($query->execute()) {
- // If the query is successful, output a success message
- echo "added date: " . $formatted_date . " successfully";
+ echo "";
} else {
- // If there's an error with the query execution, output the error message
- echo "error: " . $query->error;
+ echo "";
+
}
-}
+ $query->close();
-// Close the prepared query after execution to free up resources
-$query->close();
+}
+include ("header.php");
?>
+
+
+
+
+
+