Thanks for contacting healthcare magic. In gastritis and duodinitis you can take antacids. Do some diet modifications also. H2 receptor blocker like cimetidine can take under doctors suggestion. Avoid spicy foods and oily foods. Drink more water per day. Avoid alcohol drinking. Eat fresh fruits and green vegetables. Drink more water. Take high fiber diet for proper digestion. Avoid smoking also. Endoscopy is helpful for further diagnosis. Wish you a good health. Take care.