upset stomach 👎🏻

I'm 38+5 and for the last 24 hours I've had the worst gas ever! 
But this morning I woke up and needed to rush to the toilet. All day I feel like I've been needing to go, sometimes I can poop but it's loose (sorry so much info) and sometimes I can't and I'm not really sure if this is normal or not? 
I don't feel unwell in any other aspects and actually feel more comfortable in myself today then I have for the last week, so I'll just going to keep drinking lots of water to keep hydrated I suppose and hope it either passes or I go into labour 😂