Avoid coffee and alcohol. These products increase gastric acid production and weaken the mucosal barrier of the GI tract thus promoting ulcer formation. Most of the medicines include aluminum hydroxide combined with magnesium or calcium. Examples are Maalox, Mylanta, Tums, and Rolaids. You should take this medicine as directed.
Peptic ulcers can cause massive bleeding, which requires blood transfusion or surgery.
If you have severe abdominal pain, this suggests perforation or tearing of an ulcer. This is an emergency that may require surgery to fix a hole in your stomach. This also may require emergency surgery. The doctor will take a medical history and perform a physical exam. You may need a special x-ray, called a barium swallow .