I get a pain in my middle upper abdomen it pain come & goes but its get extremely painful at times I don't have any problems when I go to the bathroom?

Pain mid abdomen. Could be gastritis/ GERD( with or wittout H pylori) or gallbaldder. Could try Maalox 1 tablespoon 2 x a day x 2 and see if helps or ranitidine/ prevecid ( x 2 weeks) rarely could be pancreas ( if consume alcohol) ,hernia ( does your naval bulge?) or ovaries. f/u w/ doc.