Well it is probaly because your code either requires global_registers to be ON in your new site or it requires them to be off and it is also possible that your code uses short tags like <? instead of <?php So to help you solve your problem them upload this short program to your new server and either report what the values for short_open_tag is in the configuration table (the second one) and what register_globals is in the same table. The program to upload is below:
<?php
phpinfo();
?>
Also if you could just copy the code and paste it into a reply for this thread and after pasting please use the BB Codes available in these forums by highlighting you pasted code and clicking the appropriate BB Code, if you do not know how in my signature the first link show an illustrated and annotated example of the posting area for message entry.