query("SELECT * FROM logins"); $arr = []; while ($line = $reponse->fetch()) { $arr[$line[0]] = $line[1]; } $reponse->closeCursor(); ?>