It must be A Fissure. You can try conservative treatment for some time. If not relieved, surgery will be required. See that you do not have constipation. Stools should be soft. You can take Cremaffin Pink at night after dinner for that. Before passing stools & after that apply Anovate ointment around the fissure.
Health Tips
Don't eat red chillies & spicy foods