diff --git a/reference/mysql/book.xml b/reference/mysql/book.xml
new file mode 100644
index 0000000000..316b685b18
--- /dev/null
+++ b/reference/mysql/book.xml
@@ -0,0 +1,51 @@
+
+
+
+
+
+
+ MySQL
+
+
+
+ &reftitle.intro;
+
+ These functions allow you to access MySQL database servers.
+ More information about MySQL can be found at &url.mysql;.
+
+
+ Documentation for MySQL can be found at &url.mysql.docs;.
+
+
+
+
+ &reference.mysql.setup;
+ &reference.mysql.constants;
+ &reference.mysql.examples;
+ &reference.mysql.reference;
+
+
+
+
+
diff --git a/reference/mysql/constants.xml b/reference/mysql/constants.xml
index 2b3f60c80f..ef2cddee50 100644
--- a/reference/mysql/constants.xml
+++ b/reference/mysql/constants.xml
@@ -1,6 +1,6 @@
-
-
+
+
&reftitle.constants;
&extension.constants;
@@ -81,7 +81,7 @@
-
+
+
+
+ &reftitle.examples;
+
+
+ This simple example shows how to connect, execute a query, print
+ resulting rows and disconnect from a MySQL database.
+
+ MySQL extension overview example
+
+\n";
+while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) {
+ echo "\t
\n";
+ foreach ($line as $col_value) {
+ echo "\t\t
$col_value
\n";
+ }
+ echo "\t
\n";
+}
+echo "\n";
+
+// Free resultset
+mysql_free_result($result);
+
+// Closing connection
+mysql_close($link);
+?>
+]]>
+
+
+
+
+
+
+
+
diff --git a/reference/mysql/reference.xml b/reference/mysql/reference.xml
index 8c4c3132a2..376c1059d1 100644
--- a/reference/mysql/reference.xml
+++ b/reference/mysql/reference.xml
@@ -1,49 +1,10 @@
-
-
-
+
- MySQL Functions
- MySQL
+ MySQL &Functions;
-
- &reftitle.intro;
-
- These functions allow you to access MySQL database servers.
- More information about MySQL can be found at &url.mysql;.
-
-
- Documentation for MySQL can be found at &url.mysql.docs;.
-
-
-
-
- &reftitle.required;
-
- In order to have these functions available, you must compile PHP with
- MySQL support.
-
-
-
- &reference.mysql.configure;
-
- &reference.mysql.ini;
-
-
- &reftitle.resources;
-
- There are two resource types used in the MySQL module. The first one
- is the link identifier for a database connection, the second a resource
- which holds the result of a query.
-
-
-
- &reference.mysql.constants;
-
&reftitle.notes;
@@ -56,49 +17,6 @@
-
-
- &reftitle.examples;
-
- This simple example shows how to connect, execute a query, print
- resulting rows and disconnect from a MySQL database.
-
- MySQL extension overview example
-
-\n";
-while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) {
- echo "\t
\n";
- foreach ($line as $col_value) {
- echo "\t\t
$col_value
\n";
- }
- echo "\t
\n";
-}
-echo "\n";
-
-// Free resultset
-mysql_free_result($result);
-
-// Closing connection
-mysql_close($link);
-?>
-]]>
-
-
-
-
&reference.mysql.entities.functions;
@@ -125,3 +43,4 @@ vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->
+
diff --git a/reference/mysql/setup.xml b/reference/mysql/setup.xml
new file mode 100644
index 0000000000..3ca2537dff
--- /dev/null
+++ b/reference/mysql/setup.xml
@@ -0,0 +1,58 @@
+
+
+
+
+ &reftitle.setup;
+
+
+
+ &reftitle.required;
+
+ In order to have these functions available, you must compile PHP with
+ MySQL support.
+
+
+
+
+
+ &reference.mysql.configure;
+
+
+
+ &reference.mysql.ini;
+
+
+
+
+ &reftitle.resources;
+
+ There are two resource types used in the MySQL module. The first one
+ is the link identifier for a database connection, the second a resource
+ which holds the result of a query.
+
+
+
+
+
+
+
+