Spotting help!!

Alicia
I've been spotting brown irregularly for almost two weeks now and the last few days feeling nauseous. I just went to the bathroom and a thick mucous just came out. What could be the issue?