diff --git a/reference/mysql/functions/mysql-create-db.xml b/reference/mysql/functions/mysql-create-db.xml
index e23b30ecb5..bc0e93c13f 100644
--- a/reference/mysql/functions/mysql-create-db.xml
+++ b/reference/mysql/functions/mysql-create-db.xml
@@ -1,5 +1,5 @@
-
+
@@ -23,6 +23,13 @@
&return.success;
+
+
+ The function mysql_create_db is deprecated. It
+ is preferable to use mysql_query to issue a sql
+ CREATE DATABASE statement instead.
+
+
mysql_create_db alternative example
@@ -49,13 +56,6 @@ if (mysql_query($sql, $link)) {
For downwards compatibility mysql_createdb
can also be used. This is deprecated, however.
-
-
- The function mysql_create_db is deprecated. It
- is preferable to use mysql_query to issue a
- SQL CREATE DATABASE Statement instead.
-
-
This function will not be available
diff --git a/reference/mysql/functions/mysql-db-query.xml b/reference/mysql/functions/mysql-db-query.xml
index f89fc5b016..cdf528424f 100644
--- a/reference/mysql/functions/mysql-db-query.xml
+++ b/reference/mysql/functions/mysql-db-query.xml
@@ -1,5 +1,5 @@
-
+
@@ -22,6 +22,13 @@
INSERT/UPDATE/DELETE
queries to indicate success/failure.
+
+
+ This function has been deprecated since PHP 4.0.6.
+ Do not use this function. Use mysql_select_db
+ and mysql_query instead.
+
+
mysql_db_query selects a database and
executes a query on it. If the optional link identifier isn't
@@ -36,8 +43,8 @@
you can't use this function to temporarily run a
sql query on another database, you would have to manually switch back.
Users are strongly encouraged to use the
- database.table syntax in their sql queries instead of
- this function.
+ database.table syntax in their sql queries or
+ mysql_select_db instead of this function.
@@ -45,14 +52,13 @@
]]>
@@ -80,15 +87,6 @@ mysql_free_result($result);
See also mysql_connect and
mysql_query.
-
-
-
- This function has been deprecated since PHP 4.0.6.
- Do not use this function. Use mysql_select_db
- and mysql_query instead.
-
-
-
diff --git a/reference/mysql/functions/mysql-drop-db.xml b/reference/mysql/functions/mysql-drop-db.xml
index 105c4f8a6e..aef1a5e3d0 100644
--- a/reference/mysql/functions/mysql-drop-db.xml
+++ b/reference/mysql/functions/mysql-drop-db.xml
@@ -1,5 +1,5 @@
-
+
@@ -25,13 +25,13 @@
For downward compatibility mysql_dropdb
- can also be used. This is deprecated, however.
+ can also be used. This is also deprecated, however.
The function mysql_drop_db is deprecated. It is
- preferable to use mysql_query to issue a
- SQL DROP DATABASE statement instead.
+ preferable to use mysql_query to issue a sql
+ DROP DATABASE statement instead.
@@ -49,7 +49,7 @@ $sql = 'DROP DATABASE my_db';
if (mysql_query($sql, $link)) {
echo "Database my_db was successfully dropped\n";
} else {
- echo 'Error creating database: ' . mysql_error() . "\n";
+ echo 'Error dropping database: ' . mysql_error() . "\n";
}
?>
]]>