I've been having stomach pains and have been burping alot, and it can get painful. What causes this?

Lot of poss causes. Learning the cause of stomach pain requires knowing which part of your stomach hurts and under what conditions. Burping can come from a closed stomach outlet, air swallowing and other less common things. Your doctor needs to see and examine you.