+ View information of the discount with id
+ // ?delete= Delete the discount with id
+ //------------------------------------------------------------------------------
+
+ // The header of the page
+ $header = 'Discounts';
+ // Whether or not to show an individual discount in the end (false if not, or the id if yes)
+ $show_individual = false;
+
+ // View discount
+ if (isset($_GET['id'])) {
+ $id = (int) $_GET['id'];
+ try {
+ $discount = new discount($_pdo, $id);
+ $header = "Discounts / {$discount->getTitle()}";
+ $show_individual = $id;
+ } catch (PDOException $e) {
+ $alert = "