in reply to Help with Variables

Your code looks ok, depending on the input, but I don't really see what that data in the last part of your post is. It certainly doesn't look like an HTML table.

Could you update your post to include input and (expected) output? It would help us resolve your problem.

Please don't forget to use <code> tags to mark your code.

Joost.