Re: CLASS DB: undefined function: query()

From: Date: Tue, 16 Jul 2002 07:22:31 +0000
Subject: Re: CLASS DB: undefined function: query()
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-1894@lists.php.net to get a copy of this message
--- Pierre-Alain Joye <paj@pearfr.org> schrieb: > 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 Thank you, that was absolutely right. I had overlooked a typing error in the password several times. Jürgen Neu __________________________________________________________________ Gesendet von Yahoo! Mail - http://mail.yahoo.de Möchten Sie mit einem Gruß antworten? http://grusskarten.yahoo.de

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