use data-ba_se
| From: | Thomas -Balu- Walter | Date: | Fri, 09 Aug 2002 13:39:53 +0000 |
| Subject: | use data-ba_se | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-111819@lists.php.net to get a copy of this message | ||
Hi,
I just noticed a little problem(?) while using databases.
Some time ago I wrote myself a little class that made it easier to
handly my mysql-tasks. The class connected to a database and used a
query like "use $database" to switch to the given database.
This worked without a problem just as in the command-line tool "mysql",
today however I had a database called like "data-ba_se".
"use"ing it gave me a note "cannot use database data-ba_se" as result.
However it worked in the command-line mysql and it works using
mysql_select_db(). Login, Database and password were checked for typo's
of course.
PHP is 4.1.2, default woody-package.
Any idea what can be the reason for this?
Balu