We would be able to help more if you actually told us what problem you were having. I do spot a probably mistake of using the assignment in an if statement's condition, as well as having semicolons after them, creating empty if statement bodies.
I also recommend using [code][/code] tags around your code so it is readable.