Thanks for posting your query.
You have not mentioned what medications you have taken.
For the ulcers and pain you need to prilosec
for 4-8 weeks.
, get your stool test
done to rule out infection.
Sometimes conditions causing increased acidity which causes ulcer can also cause diarrhea. Discuss with your doctor about this possibility if there is persistent of recurrent symptoms.