Stomach pain?

My upper middle part of my stomach hurts. Feels better when I sit down. I don’t feel like I’m going to throw up. TMI but I feel like I need to poop and I keep burping. Is this the stomach flu or constipation? I know you’re not doctors but opinions would help! I’ve taken pepto and doesn’t seem to be helping.