You can eat eggs when you have diarrhea. However, try to eat only egg whites during this time. The egg should be well cooked, preferable boiled and not fried.