i always get heartburn i trick my mother used to tell me to get rid of it was to use Peppermint oil and sniff it for a few minutes, also Peppermint tea i think does the same thing. Mylanta the one that comes in the pink bottle works really well and
Pepcid for gastro esophageal reflux disease also works really well.
I find that staying away from fried foods and like wolf said soda or anything that has a acidy fizz to it.