From d9eda479026b8eea7143e372fa100c448b8205c8 Mon Sep 17 00:00:00 2001 From: AwesomeQuest Date: Mon, 30 Nov 2015 09:45:36 +0000 Subject: [PATCH] Did the thing All files containing PHP must be .php --- getsql.php | 4 +-- signup.html | 63 ------------------------------------- signup.php | 89 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 91 insertions(+), 65 deletions(-) delete mode 100644 signup.html create mode 100644 signup.php diff --git a/getsql.php b/getsql.php index 15efdcc..44be205 100644 --- a/getsql.php +++ b/getsql.php @@ -1,7 +1,7 @@ setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); + $pdo = new PDO('mysql:host=tsuts.tskoli.is;dbname=1612982129_gru', '1612982129', 'mypassword'); + $pdo-> setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); } catch(PDOExeption $e) { echo $e->getMessage; die(); diff --git a/signup.html b/signup.html deleted file mode 100644 index 6727ca7..0000000 --- a/signup.html +++ /dev/null @@ -1,63 +0,0 @@ - - - - - - - Pink Panther Underground - - - - -
-
-
- Sign Up - -
-
- - -
- -
- - -
-
- - -
-
- - -
- -
- - -
-
- - - - -
-
- - - \ No newline at end of file diff --git a/signup.php b/signup.php new file mode 100644 index 0000000..129cac7 --- /dev/null +++ b/signup.php @@ -0,0 +1,89 @@ + + + + + + + Pink Panther Underground + + + + + +
+
+
+ Sign Up + +
+
+ + +
+ +
+ + +
+
+ + +
+
+ + +
+
+ + + + + + prepare($insertSql); + try { + $q->bindValue(':name',$_POST['name']); + $q->bindValue(':email',$_POST['email']); + $q->bindValue(':phone',$_POST['phone']); + $q->bindValue(':play_time',$_POST['playtime']); + $q->execute(); + + } catch (Exception $ex) { + + } + + } + +?> + + +
+
+ + + \ No newline at end of file