MD5 is not encryption, it's just a hash. What you need to do is simply to save md5($password) instead of $password in your database. Then when the user wants to log in, you compare md5($_GET["password"]) with the password hash stored in the database.
Here is a tiny utility to
convert a string to MD5