Diarrhoea

I have had really bad diarrhoea for 2 days and I go toilet every hour or so how do. I stop it and what’s the cause