PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
The problem is that your javascript isn't working. The PHP is fine. You need to add a newline character "\n" where the PHP prints the javascript.
It concerns me that you say "it is not displaying anything" though. You don't appear to be using any sort of Javascript debugger. You really should because it'd make these sorts of problems really easy to fix. I'd recommend the Firebug extension for Firefox.