This seems like a non-specific intestinal colitis
. The treatment is symptomatic. You need to alter your eating habits and go into a bland diet with lots of fruits and vegetable salads.
If these symptoms continue over the next few months, you may need to be assessed by a colonscopy to rule out inflammatory bowel disease
yourself as much as you can. Take probiotics like Yoghurt daily.
Wish you speedy recovery.