Diarrhea whiles pregnant

Katie
Iv had it for 2 days now and it doesn't seen to be getting any better I'm worried it's going to affect the baby. 
Anyone else had this? 
Iv lived in the bathroom and feel awful !!