During or Immediately after the attack of diarrhea, you should take soft food, it means the food which are easy to digest like crackers, corn flakes and bananas etc and also increase liquid diet. Because after the diarrhea the digestive system is weak and unable to secrete many enzyme which are needed for digestion. So eating of heavy foods like burger, meat etc will put extra burden on the stomach.