Hurts to have b/m

So the last 2 days I will feel the need to go to the bathroom, #2. And right before I go when I feel the urge its so painful in my rectum and inside. Not to actually pass, but like right before I go. I'm guessing its from all the pressure down there? Right before I go it causes me to shoot straight up to help ease the pain... Anyone else?