Painful diarrhea

About 9 weeks and I had been suffering intense and painful gas. I finally had a bowel movement progression that came out as diarrhea. After that I’ve had such bad lower abdominal pain. Anyone else been through this? Any remedies?