1

I am trying to do the following but it isnt working, how can I make it work correct?

SELECT * FROM `exchange` WHERE SHA1(`email` + "'.$salt.'") = "'.$token.'"'
4

1 回答 1

3

use CONCAT()

SELECT * 
FROM `exchange` 
WHERE SHA1(CONCAT(`email`, 'yourSALT')) = 'yourTOKEN'
于 2013-10-14T01:46:22.187 回答