From e16af2ec0545b4f970bb74c148e69b4cb8de33d3 Mon Sep 17 00:00:00 2001 From: vista-man <524715@vistacollege.nl> Date: Tue, 8 Apr 2025 13:13:15 +0200 Subject: [PATCH] remove process_ticket.php file --- process_ticket.php | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100644 process_ticket.php diff --git a/process_ticket.php b/process_ticket.php deleted file mode 100644 index cf77030..0000000 --- a/process_ticket.php +++ /dev/null @@ -1,36 +0,0 @@ - -connect_error) { - die("Connection failed: " . $conn->connect_error); -} - -// Retrieve form data -$name = $_POST['name']; -$email = $_POST['email']; -$category = $_POST['category']; -$quantity = $_POST['quantity']; -$ticket_id = "TICKET-" . time(); - -// Insert ticket into database -$sql = "INSERT INTO tickets (ticket_id, name, email, category, quantity) VALUES (?, ?, ?, ?, ?)"; -$stmt = $conn->prepare($sql); -$stmt->bind_param("ssssi", $ticket_id, $name, $email, $category, $quantity); - -if ($stmt->execute()) { - echo "Ticket successfully purchased! Your Ticket ID is: " . $ticket_id; -} else { - echo "Error: " . $stmt->error; -} - -$stmt->close(); -$conn->close(); -?> \ No newline at end of file