RE: [PHP-DEV] PHP 4.0 Bug #5955: There is no way to query a MySQL server from PHP when there are no databases

From: Date: Fri, 04 Aug 2000 06:53:09 +0000
Subject: RE: [PHP-DEV] PHP 4.0 Bug #5955: There is no way to query a MySQL server from PHP when there are no databases
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-27613@lists.php.net to get a copy of this message
Same thing on redhat 6.0 w/ php4.0.2-dev and mysql 3.22.32 -Theodore -----Original Message----- From: Stefan Livieratos [mailto:stefan@livieratos.com] Sent: Friday, August 04, 2000 1:51 AM To: php-dev@lists.php.net; mlemos@acm.org Subject: Re: [PHP-DEV] PHP 4.0 Bug #5955: There is no way to query a MySQL server from PHP when there are no databases Hi Manuel, I am using SuSe 6.3 and can't confirm your bug. The following script works for me: mysql_connect($HOST,$USER,$PASS); $res = mysql_query("SELECT VERSION()"); print mysql_result($res, 0, 0); Regards, Stefan ----- Original Message ----- From: <mlemos@acm.org> To: <php-dev@lists.php.net> Sent: Friday, August 04, 2000 8:22 AM Subject: [PHP-DEV] PHP 4.0 Bug #5955: There is no way to query a MySQL server from PHP when there are no databases > From: mlemos@acm.org > Operating system: Linux RH 6 > PHP version: 4.0 Latest CVS (04/08/2000) > PHP Bug Type: MySQL related > Bug description: There is no way to query a MySQL server from PHP when there are no databases > > PHP MySQL API seems to only let queries be executed if you select a > database first. However, if you need to query a server doing something > like "SELECT VERSION()" and there no databases created in the server > you can't do it from PHP. This doesn't seem to be a problem when you use > mysql command line tool program. > > > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net For additional commands, e-mail: php-dev-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.dev (#27613) next »