Seems alright, try indenting your code, and please, next time you use PasteBin for PHP, please select the correct syntax highlighter. Reading PHP in black text is horrible.
Like Mark said, it looks pretty much fine. You should try indenting your code. If you don't mind, can you tell me what you use to code in PHP? I use Dreamweaver, although some people call it nooby.