I recently went through something similar. I went to my Dr and she had me get an upper endoscopy. My result was esophagitis, which was caused by repeatedly eating something I'm unknowingly allergic to. In July I go to the allergist to see what it is I'm allergic to. The difficulty swallowing may be due to a stricture...or narrowing in the esophagus. I'm not sure why your Dr only ordered an X-ray since an endoscopy is really the most accurate way to diagnose these kinds of problems. I will tell you that no amount of acid meds will solve these problems. For me it has to be a diet change. Please go to your Dr and ask for an endoscopy because it could save your life
Sounds like it could be an ulcer in addition to the heart burn. There is a medication that will treat both, I'm not sure what it is, but ask your doctor for a different one, the one that has the antibiotic in it to help heal the ulcers. Also, avoid NSAID's, they can aggravate your condition. Good luck to you, my husband has this problem and I watch him suffer from it and I know it hurts. Take care.