Subslover:
Be careful on how much magnesium though, or make your bathroom your new trading area. (Too much mag you'll trade in the ulcer pain for diarrhea).
Also depends on what type of ulcer- too much stomach acid- try a proton pump inhibitor- OTC- Prilosec (omeprazole) or, zegerid (omeprazole with sodium bicarb), Prevacid (2 caps= rx strength of 30 mg).
If its a bacterial (H. pylori)cause, MD is only way to get over it- usually give you 2 antibiotics and a coupje types of acid blockers for 14 days.