Pain reliever

Julie
I have serious cramps when I'm on my period and my go to pain reliever is ibeprophen. But that doesn't seem to help. My friends suggested midol, but when I took it I had an allergic reaction to it. Is there an alternate medication I can try that works well for cramps?