Welcome to HCM.
Yes you may be having some kind of intestinal infection of some food intolerance
If it is not relived for so long you must see a Doctor, I do not know your location as what you can do is to take enough fluid and electrolytes in the form of ORS
and naturally may be coconut water and butter milk.
Taking Curd or a probiotic
also helps the gut. If it is severe you must seek medical advise or visit ER.
A proper antibiotic may be given to reduce infection and even symptomatic antispasmotic medicine may be taken when need is there.
Other amoebic and rare infection depends on your location.