I have been having some stomach pain and back pain and I was wondering if I may have a stomach ulcer. It hurts on the right side of my back under my ribs. It hurts high in my stomach. I have been having dark, loose, stools. Sometimes the pain runs from the middle of my stomach around my sides and into my back. I have a lot heartburn, indigestion, acid reflux, diahria, and burping.