You prolly have a sinus infection. The yellow mucus is one sign, and pain in the sides of the neck is prolly a lymph node swelling up as a result of an infection somewhere. Put them together, and bada bing, time for some antibiotics. See your physician ASAP. If left untreated, it could develop into a cyst that will need surgery. :-)