Stool ph can be alkaline or acidic.
The pain and diarrhea can have various causes like IBS GASTRITIS IBD ETC.
DEPENDING ON YOUR EXACT SYMPTOMS.
Next Steps
avoid spicy foods coffee tea cold drinks alcohol smoking junk food etc.
Health Tips
plant based diet can normalize majority of such digestive problems.