What do you do about severe constipation?

I have never had this problem before but I haven't taken a sh*t since Wednesday or Thursday. When I try to the pain is unbearable. The pain just started yesterday evening. Before I just couldn't get it to come out. It hurts so bad and I didn't eat anything different. I don't understand why this is happening.
Updates
+1 y
I went to the doctor and they prescribed a stool softener. I am trying to increase my fluids but when I sit down to pee of course my body thinks I am trying to take a sh*t too and it is so painful. At this point it feel a lot like how you can't control yourself when throwing up except backwards. I am really worried about ending up with hemerriods at this point.
Updates
+1 y
I am actually not constipated anymore but my stomach hurts really bad

i think it might be because I couldn't eat much for a few days
What do you do about severe constipation?
Post Opinion