HI , there is a list of foods u may want to avoid as they can cause this problem.....
Foods that can cause flatulence (gas) in some people may not produce flatulence in others. It all depends on the amount and type of bacteria each person has in the large intestine. Gas producing foods may not need to be eliminated completely, unless you have problems of food intolerance (or food sensitivity), sometimes eating smaller amounts will help to reduce flatulence.
Broccoli, brussels sprouts
Pan fried or deep fried foods
Rich cream sauces and gravies
Bran, nuts, popcorn
Cabbage, celery, cucumbers
Kohlrabi, rutabaga, turnips
Garlic, leeks and some seeds such as fennel, sunflower and poppy all produce a lot of gas in the colon.
Sodas and other carbonated beverages
Beer causes belching because it produces gas (carbon dioxide) in the stomach. It produces smelly hydrogen sulfide in some people
Fatty meats, fatty foods can delay stomach emptying and cause bloating and discomfort, but not necessarily too much gas
Legumes (very gassy) (all types) especially dried beans and peas, baked beans, soy beans, lima beans. Beans pass through the * small intestine and arrive in the large intestine undigested which causes flatulence (gas) to occur, also, beans contain more indigestible carbohydrates than most foods.
Raffinose is a sugar found in mushrooms, beans and in smaller amounts in some vegetables and grains. The human body lacks the enzyme called alpha-galactosidase to digest this sugar, so it ends up in the large intestine undigested which causes flatulence (gas) to occur.
Fructose is naturally present in onions (very gassy), artichokes, pears, and wheat. It is also used as a sweetener in some soft drinks and fruit drinks.
Lactose is the natural sugar found in milk (very gassy), cheese (very gassy) and ice cream (very gassy), and processed foods, such as bread, cereal (somewhat gassy), and salad dressing.
Sorbitol is a sugar (which humans can't break down) found naturally in fruits, including apples, pears, peaches, and prunes. It is also used as an artificial sweetener in many dietetic foods and sugar free candies and gums.
Most starches, including potatoes, corn, noodles and wheat and wheat products including, pastries, bagels, pretzels.