Thanks for writing your query.
It would be helpful if you give some details about your diet and also about your stool.
You can take antacid like Ranitidine
150 mg twice a day along with pain killer like Mefenamic acid
and antispasmodic like Dicycloverine
after discussing with your doctor.
You should also get yourself investigated for :-
1. Complete Blood Count
2. Kidney Function Test.
4. Urine examination.
5. Stool examination.
Furthur treatment can be planned according to the reports of the above investigations.
Avoid spicy foods. You should drink lots of pure water(8-10 glasses in a day).
If the problem persists, get yourself examined clinically.
I hope this is helpful to you.