Re: CLASS DB: undefined function: query()

From: Date: Mon, 15 Jul 2002 13:34:46 +0000
Subject: Re: CLASS DB: undefined function: query()
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-1888@lists.php.net to get a copy of this message
On Mon, 15 Jul 2002 15:29:56 +0200 (CEST) Juergen Neu <neuj60@yahoo.de> wrote: > Fatal error: Call to undefined function: query() in > e:\....\pear-test.php on line 6 > > I've also tried other versions (PHP 4.1.2, PEAR 1.2) > with the same result. > > What's going wrong? > $db = DB::connect( > "mysql://$dbuser:$dbpass@$dbhost/$dbname" ); Check if the connection has been done succesfully. Use the sample codes for ::connect() method available in the pear documentation : http://pear.php.net/manual/en/core.db.tut_connect.php The connection certainly failed and return a pear error (who do not have any query methods :) ). hth pa

« previous php.pear.general (#1888) next »