Could you put your code inside code tags mate? It makes it much more readable and much easier to see whats going on.

Could you also copy and paste the exact error you're getting ?