What is the appropriate Diet for Diarrhea?

I developed weakness due to diarrhea. What should I eat?