diff --git a/reference/mysql/constants.xml b/reference/mysql/constants.xml
new file mode 100644
index 0000000000..4ec09775f6
--- /dev/null
+++ b/reference/mysql/constants.xml
@@ -0,0 +1,114 @@
+
+
+
+ &reftitle.constants;
+ &extension.constants;
+
+ Since PHP 4.3.0 it is possible to specify additional client flags for the
+ mysql_connect and mysql_pconnect
+ functions. The following constants are defined:
+
+ MySQL client constants
+
+
+
+ constant
+ description
+
+
+
+
+ MYSQL_CLIENT_COMPRESS
+ use compression protocol
+
+
+ MYSQL_CLIENT_IGNORE_SPACE
+ Allow space after function names
+
+
+ MYSQL_CLIENT_INTERACTIVE
+ Allow interactive_timeout seconds (instead of wait_timeout) of
+ inactivity before closing the connection.
+
+
+ MYSQL_CLIENT_SSL
+ use SSL (encrypted protocol)
+
+
+
+
+
+
+
+ The function mysql_fetch_array uses a constant for
+ the different types of result arrays. The following constants are
+ defined:
+
+ MySQL fetch constants
+
+
+
+ constant
+ description
+
+
+
+
+ MYSQL_ASSOC
+
+ Columns are returned into the array having the fieldname as the array
+ index.
+
+
+
+ MYSQL_BOTH
+
+ Columns are returned into the array having both a numerical index
+ and the fieldname as the array index.
+
+
+
+ MYSQL_NUM
+
+ Columns are returned into the array having a numerical index to the
+ fields. This index starts with 0, the first field in the result.
+
+
+
+ MYSQL_STORE_RESULT
+
+ Specifies that the MySQL result should be buffered.
+
+
+
+ MYSQL_USE_RESULT
+
+ Specifies that the MySQL result should not be buffered.
+
+
+
+
+
+
+
+
+
diff --git a/reference/mysql/reference.xml b/reference/mysql/reference.xml
index 46fd3f4aa5..7ba8ed3220 100644
--- a/reference/mysql/reference.xml
+++ b/reference/mysql/reference.xml
@@ -1,22 +1,25 @@
-
+
MySQL FunctionsMySQL
-
- 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.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;.
+
+
+
- Requirements
+ &reftitle.required;
In order to have these functions available, you must compile PHP with
MySQL support.
@@ -24,7 +27,7 @@
- Installation
+ &reftitle.install;
By using the configuration
option you enable PHP to access MySQL databases. If you use this option
@@ -49,7 +52,7 @@
- Runtime Configuration
+ &reftitle.runtime;
The behaviour of the MySQL functions is affected by settings in the
global configuration file &php.ini;.
@@ -251,7 +254,7 @@
- Resource types
+ &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
@@ -259,99 +262,11 @@
-
- Predefined constants
-
- Since PHP 4.3.0 it is possible to specify additional client flags for the
- mysql_connect and mysql_pconnect
- functions. The following constants are defined:
-
- MySQL client constants
-
-
-
- constant
- description
-
-
-
-
- MYSQL_CLIENT_COMPRESS
- use compression protocol
-
-
- MYSQL_CLIENT_IGNORE_SPACE
- Allow space after function names
-
-
- MYSQL_CLIENT_INTERACTIVE
- Allow interactive_timeout seconds (instead of wait_timeout) of
- inactivity before closing the connection.
-
-
- MYSQL_CLIENT_SSL
- use SSL (encrypted protocol)
-
-
-
-
+ &reference.mysql.constants;
-
-
- The function mysql_fetch_array uses a constant for
- the different types of result arrays. The following constants are
- defined:
-
- MySQL fetch constants
-
-
-
- constant
- description
-
-
-
-
- MYSQL_ASSOC
-
- Columns are returned into the array having the fieldname as the array
- index.
-
-
-
- MYSQL_BOTH
-
- Columns are returned into the array having both a numerical index
- and the fieldname as the array index.
-
-
-
- MYSQL_NUM
-
- Columns are returned into the array having a numerical index to the
- fields. This index starts with 0, the first field in the result.
-
-
-
- MYSQL_STORE_RESULT
-
- Specifies that the MySQL result should be buffered.
-
-
-
- MYSQL_USE_RESULT
-
- Specifies that the MySQL result should not be buffered.
-
-
-
-
-
-
-
- Examples
+ &reftitle.examples;
This simple example shows how to connect, execute a query, print
resulting rows and disconnect from a MySQL database.