Re: PHP 4.0 Bug #5955: There is no way to query a MySQL server from PHP when there are no databases
| From: | Stefan Livieratos | Date: | Fri, 04 Aug 2000 06:50:47 +0000 |
| Subject: | Re: 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-27612@lists.php.net to get a copy of this message | ||
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
>
>