-
ByeCorps ID
-
Log into ByeCorps and beyond with a single ID.
-
-
Sign in
-
Create an account
-
\ No newline at end of file
diff --git a/register.php b/register.php
new file mode 100644
index 0000000..eb8ce98
--- /dev/null
+++ b/register.php
@@ -0,0 +1,56 @@
+setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
+ $sql = "INSERT INTO `accounts` (`email`, `password`, `verified`) VALUES ('$email', '$password', '0')";
+ try{
+ $stmt = $conn->prepare($sql);
+ $stmt->execute($query);
+ $result = $stmt->fetch();
+ echo "Failed successfully: $result";
+ } catch (PDOException $e) {
+ http_response_code(500);
+ die("An error occured: $e");
+ }
+ }
+ catch(PDOException $e) {
+ die ("Connection failed: " . $e->getMessage());
+ }
+ echo '