When I was 6 months pregnant with my oldest son, I was hospitalized because I was throwing up and had diarrhea.
They had me stayed in the hospital to check on me and my baby because I was contracting every 5 minutes
(I don't felt anything at all, except, the urge to throw up) and the staff was worried of my contractions.
I stayed for 3 days, and they gave me medication (Isoxilan) to help me and my baby. And after that everything was well.

My question is, How does diarrhea has something to do with contractions? Is it really the diarrhea?
I have read something about it in a baby book, that one of the signs of labor is diarrhea. Please explain some for me. Thanks!