Help!

Hey ladies! I need some help figuring out what happened today! I was in school and eating lunch and all of a sudden I felt this sharp stabbing in my uterus/lower abdomen. It hurt so bad and I’m not supposed to get my period for another week. It hurt like heck for a couple hours, to where it hurt to walk or sit up straight. It was fine after I got home and laid around for a while. Was this some kind of period cramp or was it just like, gas or something. I also might add that a lot of white, sticky discharge coming out of me today.