Strange problem with the length of the field gotten from database [duplicate]
Found the problem. when I did this: echo strlen($hash) it printed 90, which is strange because there were definitely no spaces at the end when I printed out the success/failure message, and the field has a varchar length of 255 I added this line: $hash = substr( $hash, 0, 60 ); And now it works … Read more