Please use the boards [noparse]
..code..
or
..code..
[/noparse] as described in the forum's FAQs when posting code.
Also, a clear description of what you expect to happen, and what is happening instead will help us help you infinitely easier. Without a clear description of the goal and problem at hand, I can't tell you why the code doesn't do what you want.