Mimi
First, find a new doctor immediately. The doctor should do an endoscopy to determine the condition of your digestive passage and stomach. If you are vomiting food, you may have a blockage. You should be tested for heliobacter infection, which usually causes ulcers. It can be cured with a regime of antibiotics. Then you should be on a prescription strength medicine to reduce the acid and help you gut to heal. You should also control the foods you eat: avoid caffeine, soda, alcohol, chocolate, citrus fruit, tomatoes, and spicy food. And no smoking. Eat 3 hours before lying down. Raise the head of your bed 6 inches, so the acid doesn't have a chance to flow up your gut. I have been through this regime and it works, if your condition is acid reflux. If it's something else, a doctor should be able to find it and treat it. Good luck.