How long are you facing this problem?
The earlier you take these recommended steps, better will be ur condition.
What I will recommend you to eat small frequent fluid diet .It will buffer,means reduce the excess acid being produced in your stomach.
Avoid any spicy, acidic esp citrus fruits, fried or fatty food. Practice good eating habits-home made food.
Exercise regularly stimulates GI muscles.
Be careful before taking NSAID-painkillers.
You need to focus on cause rather than on medicine.