From 1220ed5e635f1395fd41d5c697f1592cbe789458 Mon Sep 17 00:00:00 2001 From: Hannes Magnusson Date: Wed, 26 Dec 2007 14:01:35 +0000 Subject: [PATCH] MFB: Upgrade to the new-reference-structure - (Created missing setup sections in setup.xml, if any) - Moved the intro to book.xml - Changed the intro ID from .intro to intro. - Moved the constants entity to book.xml - Changed constants.xml to be an appendix - Moved the example to its own chapter (examples.xml) NOTE: The chapter ID is mysql.examples, the orginal section is now mysql.examples-basic - Moved the requirements & resources section to setup.xml - Moved the configure and ini entities to setup.xml NOTE: There is still a in reference.xml (mysql.notes) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@249010 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/mysql/book.xml | 51 ++++++++++++++++++++ reference/mysql/constants.xml | 6 +-- reference/mysql/examples.xml | 69 +++++++++++++++++++++++++++ reference/mysql/reference.xml | 87 ++--------------------------------- reference/mysql/setup.xml | 58 +++++++++++++++++++++++ 5 files changed, 184 insertions(+), 87 deletions(-) create mode 100644 reference/mysql/book.xml create mode 100644 reference/mysql/examples.xml create mode 100644 reference/mysql/setup.xml 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. + +
+ + +
+ + +