FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » PEAR DB: "PHP Fatal error: Call to undefined method DB::query()"
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: PEAR DB: "PHP Fatal error: Call to undefined method DB::query()" [message #180211 is a reply to message #180208] Tue, 29 January 2013 10:35 Go to previous messageGo to previous message
Robert S is currently offline  Robert S
Messages: 2
Registered: January 2013
Karma:
Junior Member
>
> $dbh = $dbh->connect( $dsn );
>
That seems to work. I still get messages like this:

PHP Strict Standards: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /usr/share/php/DB/common.php on line 1217, referer: http://blah ..

> But probably it's better to stick with your old code, and declare static
> methods as such in the DB class:
> public static function connect($dsn) {...}
>
Where do I declare this? Is it in my code or in DB.php?
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: my blog
Next Topic: Formatting a number
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Nov 27 14:54:35 GMT 2024

Total time taken to generate the page: 0.03562 seconds