FOOD POISONING/ STOMACH BUG?

So I recently went camping and on the second night at 5 am I threw up, then the next day I felt as though I was going to puke again around the same time but didn't then the next night started gagging like my body wanted to puke but there was nothing to throw up? The gagging has stopped but I still have like a bloated period stomach ache even though my period ended 3 days ago. Also I felt fine all the days in between just at night felt sicker for some reason, I just want to know if it's possible to have a stomach ache for a couple days after food posioning or stomach bug? An if so how do I get rid of it