Welcome to HCM
With information you have given it is possible that you have chronic diarrhoea
and pain may be intestinal colic but if it is going on for 1 month, you should consult a Physician /Gastoenterologist and do a complete workup including CBC,Blood sugar, Liver Function Test,Serum Creatinine
level and stool R&M after the result it may be necessary to do a Colonoscopy
of abdomen to see any other abnormality may be required.
Once cause is detected it can be treated accordingly.
However Hernia and Hemorrhoids may require surgical intervention for which please consult a General Surgeon