What causes stomach pains and smelly farts?

Stomach pain and smelly farts are considered to be caused by functional dyspepsia, chronic gastritis, gastrointestinal dysfunction and so on. 1. Functional dyspepsia: there is no organic lesion, may be due to improper diet, often lead to fullness and bloating after meals, abdominal pain and other symptoms, and due to the food in the gastrointestinal tract for a long time, it is easy to produce gas, which leads to farting more. 2. Chronic gastritis: due to chronic inflammation of the gastric mucosa of the patient, the digestive capacity has decreased, once the diet is not appropriate, it may cause heartburn, especially if there is Helicobacter pylori infection, which often leads to a large amount of intestinal gas, resulting in smelly farts. 3. Gastrointestinal dysfunction: when the gastrointestinal dysfunction, the gastrointestinal function is often weak, slow peristalsis after eating, food stays in the gastrointestinal tract for a long time and fermentation, so that you feel the stomach pain, and discharge of smelly farts. Stomach pain and smelly farts need to adjust the diet to light and easy to digest food, if the symptoms can not be improved, you should go to the hospital in time to find out the cause.