I have database entry for password in md5 format, but when user uses the \"Forgot password\" then how can i give him/her the desired password?
You got a 1/100 chance of recovering that password (dictionary method) given the length of the password. I won't recommend it.
It's better to generate a new random password, and send it to the user's email.