White, clumpy discharge with a foul odor. Also very swollen, itchy and painful when urinating. What is it?

Painful urination. Please see your primary care doctor for a pelvic exam and appropriate tests to rule out a bladder infection, a yeast infection, and certain sexually-transmitted infections, if that is a possibility. You may require prescription medication to relieve symptoms and cure infection.