Since you are having greenish sputum, you may be having bacterial infection in the throat (tonsil
) region. That may be the cause of pain and stiffness
in neck. You should consult a physician and after examining you he may start you on a course of antibiotics. Along with that warm salt water gargles may be useful.