|
mysql_create_dbCreate a MySQL database Warning
This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQL extension should be used. See also MySQL: choosing an API guide and related FAQ for more information. Alternatives to this function include:
Description
bool mysql_create_db
( string
$database_name
[, resource $link_identifier = NULL
] )mysql_create_db attempts to create a new database on the server associated with the specified link identifier. Parameters
Return Values
Returns Examples
Example #1 mysql_create_db alternative example The function mysql_create_db is deprecated. It is preferable to use mysql_query to issue an sql CREATE DATABASE statement instead.
<?php The above example will output something similar to: Database my_db created successfully Notes
See Also
|