From 171b99b2d66ae6cd38a11a98740bcb93e1c17cbb Mon Sep 17 00:00:00 2001 From: LinuxMint4Ever <> Date: Thu, 20 Feb 2020 00:55:42 +0100 Subject: [PATCH] yeeeeee --- threadr/login/redirect.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/threadr/login/redirect.php b/threadr/login/redirect.php index 9367647..a5d6838 100644 --- a/threadr/login/redirect.php +++ b/threadr/login/redirect.php @@ -5,7 +5,7 @@ $password = $_POST['password']; $pdo = new PDO('mysql:host=localhost;dbname=web', 'webstuff', 'Schei// auf Pa$$w0rter!'); -$statement = $pdo->prepare('SELECT id, name, authentication_algorithm, authentication_string FROM users WHERE name = :username;'); +$statement = $pdo->prepare('SELECT id, name, authentication_algorithm, authentication_string FROM users;'); $result = $statement->execute(array('username' => $username)); -echo $result['name']; +echo $result[0]['name']; ?>