TMI please help

When I go to the bathroom (poop) this comes out with phlegm. Help I've been very gassy and crampy.