note 32599 rejected from function.mysql-list-tables by alindeman

From: Date: Mon, 02 Jun 2003 16:01:45 +0000
Subject: note 32599 rejected from function.mysql-list-tables by alindeman
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-49574@lists.php.net to get a copy of this message
Note Submitter: whee80528@attbi.com ---- 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?

« previous php.notes (#49574) next »