Posts: 89
Threads: 23
Joined: Dec 2012
Reputation:
0
Is your table surely called 'accounts'? Also is your username column capitalized like 'Username' as the code has it? These things (as far as I know) are case sensitive.
Posts: 1,506
Threads: 13
Joined: Jun 2015
Are you using SHA256 in your script?
Posts: 89
Threads: 23
Joined: Dec 2012
Reputation:
0
EDIT: Misread the PHP code! Sorry!
Posts: 1,506
Threads: 13
Joined: Jun 2015
Are you sure you're connected to the database? If yes, then something is missing that we didn't check for or there is an error in this code.
Posts: 1,506
Threads: 13
Joined: Jun 2015
Are you salting your SHA256 passwords in the script? I don't have much PHP knowledge though.
Posts: 2,203
Threads: 154
Joined: Oct 2009
Reputation:
0
I see that you are debugging both passwords (the entered one that's already hashed) and in database one. Are they both have same case (are they both UPPER CASE?)