hey yyzdslr, because you are lazy to copy paste your code and let us know what error you are getting, you gave us links to follow... but we too are lazy to follow the links and copy your code, with line numbers included, and compiling it. at least do that part, and someone will help you. do not transfer your work on to us. waiting for your code and compiler error or what ever it is that tells you that you have a problem, and I'll take a look.
well, cross-posting is not really appreciated.
basically, you don't show us any code, and the description you give (on the other forum) shows that even though your syntax is right, you've added the wrong fields the wrong number of times.
the best thing to do is to think over the logic and read your code (not just flat, if you go into a loop, read with it, and keep track of your variables)
that might help you find where you're going wrong.