prepare($sql); $stmt->execute([$email]); $result = $stmt->fetch(); if (!empty($result)) { die("Email is already registered. (923)"); } } catch (PDOException $e) { http_response_code(500); die("An error occured: $e"); } try { $sql = "INSERT INTO `accounts` (`id`, `email`, `password`, `verified`) VALUES (?, ?, ?, ?)"; try{ $stmt = $pdo->prepare($sql); $stmt->execute([$BCID, $email, $password, 0]); $result = $stmt->fetch(); echo "You've signed up!"; } catch (PDOException $e) { http_response_code(500); die("An error occured: $e"); } } catch(PDOException $e) { die ("Connection failed: " . $e->getMessage()); } $_SESSION["auth"] = true; $_SESSION["id"] = $BCID; exit; } ?>

Sign up for ByeCorps ID