I used to have heartburn really bad, and I still get it sometimes, but not everyday now, and I usually know what casued it (beer), but only when I drink a couple in the middle of the day and stop, by the night I will have heartburn. Anyway what I did to stop the everyday occurence was cut out all sodas (no coke, dp, sprite) nothing. It cut my heartburn down about 80%. The main things that give me heartburn now besides what I said above are:
chocolate, bannanas, watermelon, cucumber, and tea.
Best remedy is pepcid complete, it works instantly like a tums, but then last 24 hours, or usually until I eat one of the above mentioned items.