A change in diet can help if you have diarrhea. To avoid dehydration, consume a lot of fluids that include important chemicals and minerals. Try to stick to a liquid diet, stay away from oily and spicy meals. Fruit juice and sports drinks are particularly beneficial beverages since they contain potassium. These are the few things you should keep in mind if you are wondering about what to eat when you have diarrhea.