Treatment of diarrhea

Which drug is effective for problems with diarrhea, which occurs as a result of a stomach cold or due to some other reason?

First: prepare a cup of coffee without sugar, mix the coffee with lemon juice and drink it.
Second: give the children fresh chopped carrots as much as you can.