use the code tags

[code] ...place code here... [\code]
that way it's easier for people to read your code and help direct you towards a solution.