Trouble with PHP and Mysql queries using md5 encryption

后端 未结 2 1074
伪装坚强ぢ
伪装坚强ぢ 2021-01-29 14:05

I am using a normal php/mysql insert query and use md5 to encrypt the password

This is the INSERT query:

$sql = mysql_query(\"INSERT INTO user (username,         


        
2条回答
  •  走了就别回头了
    2021-01-29 14:32

    Assuming $username and $password are in fact the same... have you checked to make sure the on table users the password column character length is big enough to hold the whole MD5 hash?

    Got an example of the calculated and store MD5 hashes?

提交回复
热议问题