Usually you can eat or drink healthy foods when you have a bacterial stomach infection. You may want to avoid fatty, greasy, or spicy foods or too much milk. Usually bland foods — like toast and bread, bananas, rice, and cereal — are good choices. Yogurt may be helpful for some. Drink plenty of fluids such as water or sports drinks to keep hydrated.