Re: DB::MySQL

From: Date: Mon, 10 Jun 2002 13:43:55 +0000
Subject: Re: DB::MySQL
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-6882@lists.php.net to get a copy of this message
Uli Suppa wrote: > > Hi Guys, > > i got a suggestion for this class, because it is possible to connect do the > db server without selecting a database, > i want to query the server to list all available databases and then select > one to connect to. > > i've done this by getListOf("databases"), but this only works, if we are > connected to a db. i commented out > > if (!@mysql_select_db($this->_db, $this->connection)) { > return $this->mysqlRaiseError(DB_ERROR_NODBSELECTED); > > in mysql.php function simpleQuery(). > > could we change something there ? Would the use of mysql_list_dbs() solve the problem? Tomas V.V.Cox

« previous php.pear.dev (#6882) next »