Hello there, it is Piles also called hemorrhoids which are nothing but dilated veins coming out from anus which when ruptured bleeds and causes pain. The pain can only be treated with Medication but you need to visit MS GENERAL SURGEON and better get operated ASAP.
Next Steps
Eat semi solid food, drink lot of water, juices, take fiber in diet.