note 42063 rejected from function.mysql-create-db by betz
| From: | betz@php.net | Date: | Sat, 01 May 2004 17:58:32 +0000 |
| Subject: | note 42063 rejected from function.mysql-create-db by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-69079@lists.php.net to get a copy of this message | ||
Note Submitter: fie@myrealbox.com
----
I don't think there is anything like "if database exists" or whatever... so I had to
do this:
if(! $db = mysql_select_db($database,$link)){
mysql_create_db($database,$link);
$db = mysql_select_db($database,$link);
}