pwdencrypt worked on wamp, and it did compare the password to the encrypted password at the time.

The problem I'm having now is that mysql_result is expecting two parameters. The "0" in:

PHP Code:

pwdencrypt('$password')"), 0)==1)

Seems to bypass the need for a password altogether. As long as a registered username is entered the user is logged in.

No "0" produces the error:Warning: mysql_result() expects at least 2 parameters, 1 given

So far any other values I have tried have also produced errors. Any help would be appreciated this is pretty frustrating. I did test this without using an encrypted password an I'm still having the same issue.