Welcome to HCM,
It seems that you are having Gastro-enteritis
Take one antispasmodic tablet like Meftal spas
Take light diet like curd, rice, buttermilk.
As you had this problem off an on, it indicates you have got chronic infection, amebic or bacterial.
Go for stool test
and after report go for specific treatment accordingly.
Avoid fried, chillies and junk food.
Ok and bye.