md5查询在php中无功能[重复]

This question already has an answer here:

Why the following query doesn't work? I'm working with md5 and it doesn't do anything.

 $query = "select email from user where email='".$email."' and password='".md5('$password')."'";

Any suggestions?

</div>

You need to remove the quotes in md5 encryption

md5('$password') to md5($password)

$query = "select email from user where email='".$email."' and password='".md5($password)."'";