Abd pain

Pretty bad upper abdominal pain. Past few days I have had a lot of gas and have been having like four bowel movements a day not formed just not really diarrhea kind of in between. Not nearly as much gas today.Today I tried on a bridesmaid dress and was sucking my stomach in for like a half hour as well. What do you think is the cause of this pain?