I answered this question this morning. At the time (and having only the question itself as a reference) it seemed like one of those simple things where a newer programmer might not quite get what methods were available to him, so I assumed he had followed a more or less standard approach to what he was doing and gave my answer.
Suffice to say that that was a big mistake on my part. After a couple of back and forth comments where he said my answer wouldn't work, and where I continued to try and help him he finally pointed me to another question of his that contains the full code. It is... ummm... not pretty. I now understand why he didn't understand my answer.
To the crux of my question. It would appear to me that he is new to programming and has no clue what he is doing. I'm all for helping people, but I have neither the time nor inclination to teach him how to program or even just how to fix up what he has done so far.
Should I say something of the sort to him in comments? Or just walk away? Is there another option I haven't thought of?