I would first make sure you're taking in enough fluid, because dehydration is a common result of diarrhea. A good food to eat is yogurt; it's gentle on the stomach and intestines, and will replace some of the good bacteria your GI tract needs but has lost during a bout with diarrhea. I'd avoid foods that are typically used for laxative properties, such as prunes and apples.
There are various meals that one can take when in this condition like; White Toast and Crackers, White Rice and Mashed Potatoes, Blueberries or 6. Steamed Chicken. These foods will help you with your situation easily.