What should you do if you have heartburn?

I've been having heartburn the past few weeks. Sometimes I'd wake up in the middle of the night with the burning sensation just below my throat area. I was told I had acid reflex before in Taiwan when they did an endoscopy exam on me (where they ram that scope down your throat). It's quite annoying.
Is there a cure for this? Or do you just have to keep taking Nexum and Tums everyday? I do have some Nexum, and I think I read that you're supposed to take it twice a day half an hour before meals. But the articles I saw online sometimes said different things.
Any of you have heartburn too? If so, what treatment do you use for it?
Is there a cure for this? Or do you just have to keep taking Nexum and Tums everyday? I do have some Nexum, and I think I read that you're supposed to take it twice a day half an hour before meals. But the articles I saw online sometimes said different things.
Any of you have heartburn too? If so, what treatment do you use for it?