Advil is not something you want to take if you have an ulcer. It inflames the lining of the stomach. Take tylenol instead.
"Advil may also cause serious effects on the stomach or intestines, including bleeding or perforation (forming of a hole)."
-http://www.drugs.com/advil.html