diff --git a/src/server/cyberhex-code/test/login.php b/src/server/cyberhex-code/test/login.php index a5712b5..c5e9489 100644 --- a/src/server/cyberhex-code/test/login.php +++ b/src/server/cyberhex-code/test/login.php @@ -326,8 +326,9 @@ try { //put credential id into session where userid = $userId $stmt = $conn->prepare("SELECT credential_id FROM users WHERE user_hex_id = ?"); - $stmt->execute([$userId]); - $registration = $stmt->fetch(PDO::FETCH_ASSOC); + $stmt->bind_param("s", $userId); + $stmt->execute(); + $registration = $stmt->get_result(); if (!$registration) {