What foods can cause you to have flatulance and cause a bad odor?

It depends on the digestive system of the individual. Beans (such as chili), brussel sprouts, broccoli, some peppers, spices, etc. will cause a build-up of gas and thus flatulance.