Clearly you are experiencing an infection, but your vaginal discharge
is not related to your bowel movement.
I would advice you to get your urine examined along with a vaginal swab test to check on your vaginal discharge. As long as you are at the doctors, please also request for a stool examination. A course of antibiotics would be essential in such a situation to help treat the infection.
Hope this helps.