Cramps!! And ideas?!?

Hi! So I'm 36 weeks pregnant. And the past two days I've woken up in the middle of the night with super bad cramping that feels like a strong period also when I wipe sometimes this yellowish stuff comes on the toilet paper . Any ideas what this is???