View Single Post

  #2 (permalink)  
Old 03-18-2008
Erwin Moller
 
Posts: n/a
Default Re: Moving to PHP5 - getting problems in test - Advise please

news.freedom2surf.net wrote:
> Hi,
>
> My web host is moving to PHP5 and I was doing some pre-testing on a
> server they provdied for me which already has it running (As I want to
> make sure my large application will still work).
>
> However, on shipping over the MySQL dataabse to the PHP5 test server I
> have run ito a problem already when the PHP applicaion tries to open the
> DB.
>
> It was so long since I have done this side of things I could do with
> some advice.
>
> The error I get is
> Fatal error: Call to undefined method DB_Error::query() in
> /home/pathtofile/DBconnectScript.php on line 20
>
> And the line that rasies the error uses:
> DB::isError
>
> earlier in the script I have made a call to
> require_once('DB.php');
>
> which is a script that was there when I took over this project and I
> assume is some standard library. Looking up info on this now I see it
> has been replaced by MDB2, but as I know nothing about this, and my
> webhost is going live with php5 tomorrow, I really need some help fast.
>
>
> Any ideas on what I can do to get this working.
>
> Thanks in advance.
>


Hi,

Start with telling PHP to display all errors, notices, etc.
Add this above your script:
ini_set('display_errors','On');
error_reporting(E_ALL);

Then run it again.

Post back what you found.

Regards,
Erwin Moller
Reply With Quote