Does the phone prompt you with anything? If it prompts you with password or just sits there, try just entering the code. If it ask say incorrect sim, try entering #0111* followed by the code.
The other way to unlock the phone is here:
http://en.wikibooks.org/wiki/Samsung_SGH-D807