Appendix?

I’ve had a tummy ache for about 2 days now. It’s a sharp pain in my stomach and I keep passing gas. I had a sharp pain in my right side but it happed once and never came back? What could this be. I’m able to poop and have an appetite. No fever or any other symptoms. Could just be trapped gas? Pain is in upper stomach and the pain isn’t constant or severe to point of agony