PHP md5() gives different output then MySQL md5 PHP md5() gives different output then MySQL md5 mysql mysql

PHP md5() gives different output then MySQL md5


I guess the problem in the length of column of your table, set the length of password field to at least 32


No way MySQL returns it of a length of < 32. If you would do a simple query like SELECT md5('brickmasterj'), you would see. Now you are most likely inserting the value into a column which is not wide enough.


Is your database field 32 characters long? Are you writing to the database using mysql's md5?