$pass = md5($_POST['password']);

select..... where password='$pass'.....