I get like that sometimes, try using a insert laxative or give yourself a enima. From what my doc said those can help. Also take benefiber everyday. To help prevent a reoccurance.
How old are you, do you have any official diagnosis, when did your constipation started?
Enough fibres and fluid
Daily physical activity
Fighting with anxiousness
Avoiding certain foods you recognize as constipating
Some medications may cause constipation
Diverticulosis is a common cause.