You would get a better help, if you could describe your symptoms in detail( duration, any variation with time, food, etc) and the location of the pain, etc..
Bloating is sensation of tightness around the abdomen area or increased in size( due to gas in the GI tract).
Causes vary from consuming aerated drinks, alcohol, high fiber foods to many medical conditions.
Ulcer presents as pain mostly in the gastric region( stomach area). Pain after talking food or pain reliving after taking food. Also may present burning sensation in the throat and neck in some cases.
Get an examination done from doctor to confirm any diagnosis.
Here are some tips to help you in the mean while.
1) Drink plenty of liquids ( Water, fresh fruits and vegetable juices).
2) Avoid high fiber diet.
3) Pro biotic supplements containing intestinal bacterial spores may assist with restoring intestinal bacterial populations.
4) Avoid spicy food, alcohol, smoke , etc.
Follow me on twitter for daily tips, drarunprakashmd.