Two different problems
Hemorrhoids are cushions of blood vessels in the anal canal that have become enlarged. Internal hemorrhoids sit inside the canal and may slip out during straining; external hemorrhoids lie under the skin around the anus.
An anal fissure is a small tear in the thin lining of the anal canal, most often caused by passing a hard stool. The muscle around the anus then goes into spasm, which reduces blood flow to the tear and slows healing.