When you have an upset stomach you should eat what is known as the BRAT diet and that consists of Bananas, Rice, Apple Sauce and Toast.
You don't have to eat the foods in that order but those are some good foods to eat when you have the stomach flu.
Eat any foods that are bland and avoid any dairy or spicy foods until your upset stomach is gone.