Thanks for writing your query.
After reading your post, it seems that you might be having anal fissure
and needs medical attention.
I would advise that you should get yourself clinically examined and investigated by a surgeon.
Sitz bath twice daily will help you in relieving your symptoms.
A painkiller after meals and local application of nitroglycerin
ointment 2-3 times daily will help in controlling pain.
Further medical management can be planned after clinical examination.
I hope this is helpful to you.