The first thing you should do is to make sure display_errors is turned on (or, if you're logging errors, check the log to see if PHP is generating any error messages).
Then, post the exact error messages for us to see as well as the relevant lines of code. There's not much we can do without seeing some of your code..