In pain, from not being able to use the bathroom. W hat should I take, or what diet I should do?

Rectal pain relief. Docusate (per pdr) helps moisten & soften hard, dry stools. It is not a true laxative, but facilitates natural defecation, usually within 12 to 72 hours. This is safe & available for anyone over 2, & assumes normal GI anatomy without inflammation, stenosis, extrinsic or instrinsic obstruction. Change in bowels is a "red flag", like weight loss or blood in stool, that needs evaluation if persistent.