I have the same problem. It's GERD. You need an EGD to check for a hiatal hernia and polyps. You could have stomach or esophageal cancer. Until then just Google and look for a GERD diet. No chocolate, alcohol, mints/gum, caffeinated beverages, oils/fatty foods, carbonated drinks, citrus fruits, spicy food, or tomatoes. Sleep on a wedge pillow, preferably on your left side. Don't lie down for at least two hours after a meal. Basically you can't eat at a Mexican or Italian restaurant any more if you want to live.
Your doc will probably prescribe Protonix, Nexium, or something like that.
It's not very fun. I'm not gonna lie -- I break the rules a lot because I'm a foodie.
Oh, and the Versed they give you when you have the EGD is the world's best drug, IMO. One of my best friends and neighbors is an anesthesiologist. She laughed when I asked her if she could give me a dose of Versed every Friday and Saturday night -- no calories and it doesn't give you the munchies. It just makes you love everyone and feel happy. She says they've had a lot of success with that drug.