I am trying use the function mysql_create_db in xampp 1.7.2
What should I do?
And Why the function mysql_create_db deprecated?
mysql_query("create database name....");
You shound use:
mysql_query("create database name....");
see here
http://ch.php.net/manual/en/function.my ... ate-db.php
you can use this function like before, but now it throws a notice, that this function is deprecated (because the use of mysql_query() is the cleaner way, i think).
If you don't want to see deprecated notices, than you can configure the error reporting.
But wherever it is possible, you should use mysql_query()
how can I use the mysql_create_db() in xampp 1.7.2?
There is no way to do this.
(this function is only available with a very old MySQL client library)
Users browsing this forum: No registered users and 148 guests