Feeling sick

Woke at at 5am really bad cramps vomiting and with bad diareah I'm 29 weeks pregnant just wondering if anybody has gone through this and what did you do?