It seems that you are having acute Gastro-intestinal infection due to contaminated food.
Consult your doctor and take treatment of loose motions.
There is a chance of having dehydration
if loose motions does not control.
Take plenty of water, apple juice, lemon juice.
Take Electrolytes and ORS
Take light dooet like curd, rice and buttermilk.
Ok and take care.