crypticdeity wrote in php

moving host woes

Hi, moving a friend's site from one site to another proved to be a bit of a problem. I was at first getting Internal Server Errors, when I checked the logs I was getting premature end of script headers.
After changing permissions I managed to avoid this error, but get another error.
My problem is now this:

Fatal error: Call to a member function on a non-object in /home/public_html/index.php on line 126

when i check line 126
this is what's there: $default_num_rows = $get_default->numRows();

this doesn't look like something that would be affected by a move of hosts as nothing appears to be defined to any specific directory that isn't already there? can anyone help me?