prepare($sql); $stmt->execute([$BCID, $email, $password, 0]); $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()); } $_SESSION["auth"] = true; $_SESSION["id"] = $BCID; exit; } ?>

Sign up for ByeCorps ID