What can I do for my 4 year old?

Morning ladies! My 4 year old has gotten really bad diahrea the last 24hrs. He literally can’t keep anything in. Any ideas what kind of medication I can give him for it? He’s so miserable with it bless his little heart