Thanks for writing your query.
After reading your post, it seems that you might be having an infection of the gastrointestinal tract.
The white discharge can be mucus secreted by the intestines. It is increased in gastrointestinal tract infections.
I would advise that you should get yourself clinically examined and investigated.
You should take an antacid like Omeprazole
40mg once a along with an antibiotic like Ciprofloxacin
500mg twice daily along with Metronidazole
400 mg thrice daily.
along with digestive enzyme
preparation containing pepsin and fungal diastase after meals will be helpful.
You should eat light meals prepared under hygienic conditions.
Also take care of your hydration.
I hope this is helpful to you.