I have a database that the user can create an account for with an id being auto generated and the password being users inputted.
I then on another page need to check if the password is correct, and I have the id in a drop down so I don't have to check for that. How would I do this?
I have the password and the id in the same MySQL table, and I am using PHP to grab stuff from the table.
How I connect to the database:
$dsn = "mysql:host=courses;dbname=cs56711";
$pdo = new PDO($dsn, $username, $password);
I have tried a bunch of different ideas on how to try this, but none have worked so far. That's also why I don't have more code, because I have changed things out so much that I don't think anything would help it.