php-windows Digest 8 Sep 2002 10:32:29 -0000 Issue 1328
Topics (messages 15707 through 15707):
Re: I got a little confusion about mysql and php
15707 by: Shawn Sellars
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin 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....
--- End Message ---