Welcome to Ask The Doctor.
You seem to be suffering from Irritable Bowel Syndrome (IBS).
However, such chronic loose stools, should be evaluated for any cause like Persistent GI infection.
I would advise you to get Stool routine and Microscopy done.
If that is clear, you should start taking a combination of Pantoprazole and Domperidone.
Moreover, for pain you can take Mebeverine.
I hope it helps.
These Q&A’s are for educational purposes and should not be relied upon as a substitute for medical advice you may receive from your physician. If you have a medical emergency, please call 911. These answers do not constitute or initiate a patient/doctor relationship.