note 32599 added to function.mysql-list-tables
| From: | whee80528 at attbi dot com | Date: | Mon, 02 Jun 2003 15:31:09 +0000 |
| Subject: | note 32599 added to function.mysql-list-tables | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-49569@lists.php.net to get a copy of this message | ||
Perhaps I'm just a extreme noobie... which wouldn't be half wrong... but can't u just
use this to check for a database:
function mysql_dbcheck($connectionscript, $needle) {
mysql_connect($connectionscript) or die("Could not connect to database");
$dbpresent=mysql_select_db($needle);
mysql_close($connectionscript);
return($dbpresent);
}
Shouldn't this work because of the fact that mysql_select_db returns false if it can't
find it, therefore the database isn't there?
----
Manual Page -- http://www.php.net/manual/en/function.mysql-list-tables.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+32599
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+32599&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+32599&report=yes