He's got a tummy bug by the sound of it. Mucus is produced when the gut is irritated.

Standard treatment is to give no food whatsoever for 12-24 hours and then to introduce bland meals (chicken or...