This usually happens when you don't upload some of the necessary include files. Maybe the connection or one of the other library files. If you add this code to the top of the page it might give you more information:
<?php
ini_set("display_errors",1);
?>