TMI but need help

It’s really hurting (like major pain) when I need to shit. like i’m scared to eat cause i know it will hurt like a bitch when i need to go to the bathroom. can i get some help of what it might be?