diff --git a/add_club.php b/add_club.php new file mode 100644 index 0000000..57f1c64 --- /dev/null +++ b/add_club.php @@ -0,0 +1,112 @@ +prepare( + 'INSERT INTO clubs (name, address, number, neighborhood, city, description) VALUES (?, ?, ?, ?, ?, ?)' + ); + $stmt->execute([$club_name, $address, $number, $neighborhood, $city, $description]); + $success_message = 'Club \'' . htmlspecialchars($club_name) . '\' has been added successfully!'; + } catch (PDOException $e) { + $error_message = 'Database error: ' . $e->getMessage(); + } + } +} +?> + + +
+ + +This is your admin dashboard. From here, you can manage clubs, tournaments, and users.
+ Add New Club +