From 00fda2f0dfdaa1129949f0fa116cfaeff23ab486 Mon Sep 17 00:00:00 2001 From: Mateja Date: Mon, 28 Sep 2020 19:14:53 +0200 Subject: first commit --- reservation.php | 164 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 164 insertions(+) create mode 100644 reservation.php (limited to 'reservation.php') diff --git a/reservation.php b/reservation.php new file mode 100644 index 0000000..84949c5 --- /dev/null +++ b/reservation.php @@ -0,0 +1,164 @@ + + + + + + + + Yota Callplan + + +
YOTA
+ +
+setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); + $stmt = $conn->prepare("INSERT INTO activities (name, surname, age) VALUES (:name, :surname, :age)"); + $stmt->bindParam(':name', $_POST['fname']); + $stmt->bindParam(':surname', $_POST['lname']); + $stmt->bindParam(':age', $_POST['age']); + $stmt->execute(); + echo "

Data inserted.

"; + } catch (PDOException $e) { + echo "

Error!: " . $e->getMessage() . "

"; + } +} +?> +
+ + + + + + + +
+ +
+
+
+ +
+ + + + + + + + + + +
+ I will be active on bands: + + +
+ + +
+ + +
+ + +
+ + +
+ + +
+ + +
+ + +
+ + +
+ + +
+ + +
+ + +
+ + +
+ + +
+ +
+ +
+ I will use modes: + + +
+ + +
+ + +
+ + +
+ + +
+ + +
+ + +
+ +
+ + + + + + + + + + + + + + +
+ +
+ + -- cgit v1.2.3