diff --git a/axios.php b/axios.php new file mode 100644 index 0000000..3e4ad1a --- /dev/null +++ b/axios.php @@ -0,0 +1,192 @@ + + + + Soiree + + + + + + + + +s + + + + + + + + +
+
+
+
+
+
+

Upcoming Event

+

Retro Night

+

Hey dudes and dudettes, we're gonna have a retro night with wine, cheese and a huge selection of the Beatles, Bob Dylan and Dire Straits. Be sure to register and dress up like you travelled to the 80's

+
+

2nd August, 2018

+

ColoredCow, Gurgaon

+
+

+ I want to attend + Share it with a Friend! +

+
+
+
+
+
+
+
+
+

Past Events

+
+
+
+
+
+ +
+
+
+ +
+

Gallery

+ +
+
+
+
+
+ +
+
+ +
+
+ + + + + + + + diff --git a/database.php b/database.php new file mode 100644 index 0000000..6db98fd --- /dev/null +++ b/database.php @@ -0,0 +1,26 @@ +connect_error) { + die("Connection failed: " . $conn->connect_error); +} + +$data = json_decode(file_get_contents("php://input")); +$username = $data->name; +$phone = $data->phone; + +$sql = "INSERT INTO form_data(name, phone) VALUES ('$username','$phone')"; + +if ($conn->query($sql) === true) { + echo "Thankyou for registration"; +} else { + echo "Error"; +} + +$conn->close();