Having diarrhea every day while traveling in Costa Rica?

I will be here for four weeks but I am about two weeks into my trip and I have diarrhea several times per day. It is making me very tired and physically fatigued. What can I do to stop this, and is this very dangerous if I don’t find out what I am consuming that is causing this? Any advice/tips?
2 answers 2