Hello
I really appreciate  your concern
This can be caused by food 
poisoning or intestinal infection or 
food allergy and mal absorption
If you can provide me more information like your age and relevant medical history
Are you having fever or acid reflux
how's your appetite 
In my opinion you should take plenty of fluids including ORS to counter 
dehydration and electrolytic imbalances
Meanwhile have probiotics, curd, yogurt or banana as a home remedy
Have lots of dietary fibers and fresh fruits or vegetables to keep 
colon healthy.
Maintain good hygiene
wash your hand properly before taking food
You may require a course of antibiotics under supervision of your doctor after a 
stool test.
Please revert back to me with details so that I will be able to tell you more precisely
wish you good health
Regards