Please help, i can't figure out what's wrong with my code [solved]

Because of its layout some of your code has had code tags added to it by the forum software

Please follow the advice given in the link below and post **all **of it in code tags