You are suffering from Gastro enteritis
Take more water,take light food containing butter milk,curd, rice,etc.
Take some anti spasmodic and some medicines for loose motions.
if it is not controlled go to doctor and take medicines,there is possibility of dehydration
is different entity,go for check up.
ok and bye.