Your symptoms of burning in the stomach, especially after having chilli, is suggestive of acid-peptic disorder. Although it is not proven that foods containing chilli are a cause for ulcer disease of stomach, I have seen many individuals who complain of aggravation of their gastric symptoms after consuming spicy food items. This is also seen in those who suffer from Gastro-oesophageal reflux disease.
I suggest that you should have an upper GI endoscopy to find out the exact nature of your disease. Sometimes, an infection with a bacteria called H. pylori can be the cause of acid-peptic disease. This can be diagnosed on endoscopy, and a two-week course of antibiotics can cure this.