RE: [PHP-WIN] Re: I got a little confusion about mysql and php
| From: | Shawn Sellars | Date: | Sun, 08 Sep 2002 10:32:26 +0000 |
| Subject: | RE: [PHP-WIN] Re: I got a little confusion about mysql and php | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-15707@lists.php.net to get a copy of this message | ||
Possibly even easier would be to change the CREATE DB syntax to -
CREATE DATABASE /*!32312 IF NOT EXISTS*/ my_database_name
This assumes you don't really care about an error code being returned if
it does already exist.
Shawn Sellars
-----Original Message-----
> if ( database doesn't exists )
> create db;
As far as I know, in mysql you cannot create a database that is allready
created.... So, the mysql_create_db() function *should* return an
error....