constant diarrhea

Hannah
My son is on day 5 of Mucousy diarrhea. It happened about 10 times a day and he has a horrible rash because of it. He threw up one of the days but hasn't thrown up anymore. I was thinking it was the stomach bug but the diarrhea is continuing at the same rate. He's eating fine and acting fine (besides the diaper changing bc of the rash). I've also been giving him pedialyte bc he is pooping so much. Does anyone have any advice or what to do? Or what it could be