This could be a part of gastroenteritis
which could be viral or bacterial. If viral, most of the time it is self limiting and no further treatment is required. I would suggest that you rehydrate yourself by drinking plenty of fluids, rice gruel, bland soups etc.
Is there any blood/mucus in the stool? Any history of fever?
If yes,you might want to get a stool examination done to rule out any bacterial or parasitic infections.
Hope this helps.
Dr. Divya Kuttikrishnan