Diarrhea at 34 weeks & contractions

Okay so 2 weeks ago I was having contractions 6 mins apart they gave me a shot to stop them then a week ago I was having them 5-7 mins apart they gave fluids to stop them but was still having them. I've been having runny diarrhea for 2-3 days now and yesterday I had a streak of blood on underwear and when I wiped I saw a string length mucus that had a pinkish red tint.. but I also been losing mucus lately anyways but this time I saw a little blood.. now today I feel sick as hell, and runny diarrhea and some cramping.