Coughing up flem

Paige • I'm from Oklahoma and have a boyfriend of 4 years
I've had a cough for 4 days now with sore throat, swollen lymph nodes, stopped up nose and ears. The first two days I was coughing up clear like loogies. Now it's this hard greenish yellow stuff. N seems like flem but I'm not sure. What do you think it is or what could i be sick with?