I've had frequant off and on pain in my stomache on my right side by my ribs.?

Chest pain. It may be as simple as muskuloskeletal or some thing related to your stomach reflux. Gastritis or ulcer may also cause these symptoms. It may be related to your heart eg coronary artery disease. You may need a thourogh evaluation.