This is a difficult one.
The first question you asked was hard, and complicated, and the answer requires multiple steps. A good answer would require a lot of searching (which you could do yourself) unless the person answering knew where to find examples off the top of his/her head. I attempted an answer in the thread itself, just now.
The second question you asked is just a "fix my problem for me" question, which involves running your code to find out what's wrong. It doesn't have any comments, so it's hard to work out what you're trying to do. You also commented out a big section of it - is that bit important or not?
Try cutting it down to the bare minimum code which doesn't behave like you expect. Sometimes the process of doing this means that you find the problem for yourself. But really, you shouldn't worry if a question you post isn't answered within a day - not many people check all the questions all the time
Another tip is to mark up your code with code tags. In YaBB, they are a bit like HTML tags:
<code> ... </code> except they use square brackets.
You might also find the board quiet because it's summer - there seems to be a flurry of activity when new academic courses start in September/October.