Q:How can we create a database using PHP and mysql?
Answer:
In the earlier versions of PHP we were using
mysql_create_db($dbstring,$link) to create a database,but PHP5 n latest versions of PHP do not support this function.
Now we will have to use
mysql_query(“create database databasename”); to create database.
mysql_drop_db($dbname,$link) is also not supported by PHP5 n onwards versions.
If know some other ways post it in Comments