0

I'm trying to prepare a statement for login calling the SHA1 function in mysql, but the prepare function keeps returning false

 $query = "select user_id, first_name from users where email=? and pass=SHA1(?)";
 $stmt = mysqli_prepare($dbc, $query);

Passing mysql functions works, as I can use now() without issue. Does anyone know what is wrong here?

4

1 に答える 1

0

sha1()PHPで関数を実行します。そうでない理由もありません。これは、明確な答えのない問題に対する簡単で有効な解決策です。

于 2012-06-18T14:28:21.883 に答える