cvs: phpdoc /en/reference/mysql book.xml constants.xml examples.xml reference.xml setup.xml
| From: | Hannes Magnusson | Date: | Wed, 26 Dec 2007 14:01:35 +0000 |
| Subject: | cvs: phpdoc /en/reference/mysql book.xml constants.xml examples.xml reference.xml setup.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-829@lists.php.net to get a copy of this message | ||
bjori Wed Dec 26 14:01:35 2007 UTC
Modified files:
/phpdoc/en/reference/mysql book.xml examples.xml setup.xml
constants.xml reference.xml
Log:
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 <extname>.intro to intro.<extname>
- 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 <partintro> in reference.xml (mysql.notes)
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/mysql/book.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/mysql/book.xml diff -u /dev/null phpdoc/en/reference/mysql/book.xml:1.2 --- /dev/null Wed Dec 26 14:01:35 2007 +++ phpdoc/en/reference/mysql/book.xml Wed Dec 26 14:01:35 2007 @@ -0,0 +1,51 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.2 $ --> +<!-- Purpose: database.vendors --> +<!-- Membership: bundled, external --> + +<book xml:id="book.mysql" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + <title>MySQL</title> + + <!-- {{{ preface --> + <preface xml:id="intro.mysql"> + &reftitle.intro; + <para> + These functions allow you to access MySQL database servers. + More information about MySQL can be found at <link + xlink:href="&url.mysql;">&url.mysql;</link>. + </para> + <para> + Documentation for MySQL can be found at <link + xlink:href="&url.mysql.docs;">&url.mysql.docs;</link>. + </para> + </preface> + <!-- }}} --> + + &reference.mysql.setup; + &reference.mysql.constants; + &reference.mysql.examples; + &reference.mysql.reference; + +</book> + +<!-- Keep this comment at the end of the file +Local variables: +mode: sgml +sgml-omittag:t +sgml-shorttag:t +sgml-minimize-attributes:nil +sgml-always-quote-attributes:t +sgml-indent-step:1 +sgml-indent-data:t +indent-tabs-mode:nil +sgml-parent-document:nil +sgml-default-dtd-file:"../../../manual.ced" +sgml-exposed-tags:nil +sgml-local-catalogs:nil +sgml-local-ecat-files:nil +End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 +--> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/mysql/examples.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/mysql/examples.xml diff -u /dev/null phpdoc/en/reference/mysql/examples.xml:1.2 --- /dev/null Wed Dec 26 14:01:35 2007 +++ phpdoc/en/reference/mysql/examples.xml Wed Dec 26 14:01:35 2007 @@ -0,0 +1,69 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- $Revision: 1.2 $ --> + +<chapter xml:id="mysql.examples" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + &reftitle.examples; + <section xml:id="mysql.examples-basic"> + <para> + This simple example shows how to connect, execute a query, print + resulting rows and disconnect from a MySQL database. + <example> + <title>MySQL extension overview example</title> + <programlisting role="php"> +<![CDATA[ +<?php +// Connecting, selecting database +$link = mysql_connect('mysql_host', 'mysql_user', 'mysql_password') + or die('Could not connect: ' . mysql_error()); +echo 'Connected successfully'; +mysql_select_db('my_database') or die('Could not select database'); + +// Performing SQL query +$query = 'SELECT * FROM my_table'; +$result = mysql_query($query) or die('Query failed: ' . mysql_error()); + +// Printing results in HTML +echo "<table>\n"; +while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) { + echo "\t<tr>\n"; + foreach ($line as $col_value) { + echo "\t\t<td>$col_value</td>\n"; + } + echo "\t</tr>\n"; +} +echo "</table>\n"; + +// Free resultset +mysql_free_result($result); + +// Closing connection +mysql_close($link); +?> +]]> + </programlisting> + </example> + </para> + </section> +</chapter> + +<!-- Keep this comment at the end of the file +Local variables: +mode: sgml +sgml-omittag:t +sgml-shorttag:t +sgml-minimize-attributes:nil +sgml-always-quote-attributes:t +sgml-indent-step:1 +sgml-indent-data:t +indent-tabs-mode:nil +sgml-parent-document:nil +sgml-default-dtd-file:"../../../manual.ced" +sgml-exposed-tags:nil +sgml-local-catalogs:nil +sgml-local-ecat-files:nil +End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 +--> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/mysql/setup.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/mysql/setup.xml diff -u /dev/null phpdoc/en/reference/mysql/setup.xml:1.2 --- /dev/null Wed Dec 26 14:01:35 2007 +++ phpdoc/en/reference/mysql/setup.xml Wed Dec 26 14:01:35 2007 @@ -0,0 +1,58 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.2 $ --> + +<chapter xml:id="mysql.setup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + &reftitle.setup; + + <!-- {{{ Requirements --> + <section xml:id="mysql.requirements"> + &reftitle.required; + <para> + In order to have these functions available, you must compile PHP with + MySQL support. + </para> + </section> + <!-- }}} --> + + <!-- {{{ Installation --> + &reference.mysql.configure; + <!-- }}} --> + + <!-- {{{ Configuration --> + &reference.mysql.ini; + <!-- }}} --> + + <!-- {{{ Resources --> + <section xml:id="mysql.resources"> + &reftitle.resources; + <para> + 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. + </para> + </section> + <!-- }}} --> + +</chapter> + +<!-- Keep this comment at the end of the file +Local variables: +mode: sgml +sgml-omittag:t +sgml-shorttag:t +sgml-minimize-attributes:nil +sgml-always-quote-attributes:t +sgml-indent-step:1 +sgml-indent-data:t +indent-tabs-mode:nil +sgml-parent-document:nil +sgml-default-dtd-file:"../../../manual.ced" +sgml-exposed-tags:nil +sgml-local-catalogs:nil +sgml-local-ecat-files:nil +End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 +--> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/mysql/constants.xml?r1=1.9&r2=1.10&diff_format=u Index: phpdoc/en/reference/mysql/constants.xml diff -u phpdoc/en/reference/mysql/constants.xml:1.9 phpdoc/en/reference/mysql/constants.xml:1.10 --- phpdoc/en/reference/mysql/constants.xml:1.9 Wed Jun 20 22:25:00 2007 +++ phpdoc/en/reference/mysql/constants.xml Wed Dec 26 14:01:35 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.9 $ --> -<section xml:id="mysql.constants" xmlns="http://docbook.org/ns/docbook"> +<!-- $Revision: 1.10 $ --> +<appendix xml:id="mysql.constants" xmlns="http://docbook.org/ns/docbook"> &reftitle.constants; &extension.constants; <para> @@ -81,7 +81,7 @@ </tgroup> </table> </para> -</section> +</appendix> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/mysql/reference.xml?r1=1.24&r2=1.25&diff_format=u Index: phpdoc/en/reference/mysql/reference.xml diff -u phpdoc/en/reference/mysql/reference.xml:1.24 phpdoc/en/reference/mysql/reference.xml:1.25 --- phpdoc/en/reference/mysql/reference.xml:1.24 Mon Dec 10 17:06:06 2007 +++ phpdoc/en/reference/mysql/reference.xml Wed Dec 26 14:01:35 2007 @@ -1,49 +1,10 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.24 $ --> -<!-- Purpose: database.vendors --> -<!-- Membership: bundled, external --> +<!-- $Revision: 1.25 $ --> <reference xml:id="ref.mysql" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> - <title>MySQL Functions</title> - <titleabbrev>MySQL</titleabbrev> + <title>MySQL &Functions;</title> <partintro> - <section xml:id="mysql.intro"> - &reftitle.intro; - <para> - These functions allow you to access MySQL database servers. - More information about MySQL can be found at <link - xlink:href="&url.mysql;">&url.mysql;</link>. - </para> - <para> - Documentation for MySQL can be found at <link - xlink:href="&url.mysql.docs;">&url.mysql.docs;</link>. - </para> - </section> - - <section xml:id="mysql.requirements"> - &reftitle.required; - <para> - In order to have these functions available, you must compile PHP with - MySQL support. - </para> - </section> - - &reference.mysql.configure; - - &reference.mysql.ini; - - <section xml:id="mysql.resources"> - &reftitle.resources; - <para> - 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. - </para> - </section> - - &reference.mysql.constants; - <section xml:id="mysql.notes"> &reftitle.notes; <note> @@ -56,49 +17,6 @@ </para> </note> </section> - - <section xml:id="mysql.examples"> - &reftitle.examples; - <para> - This simple example shows how to connect, execute a query, print - resulting rows and disconnect from a MySQL database. - <example> - <title>MySQL extension overview example</title> - <programlisting role="php"> -<![CDATA[ -<?php -// Connecting, selecting database -$link = mysql_connect('mysql_host', 'mysql_user', 'mysql_password') - or die('Could not connect: ' . mysql_error()); -echo 'Connected successfully'; -mysql_select_db('my_database') or die('Could not select database'); - -// Performing SQL query -$query = 'SELECT * FROM my_table'; -$result = mysql_query($query) or die('Query failed: ' . mysql_error()); - -// Printing results in HTML -echo "<table>\n"; -while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) { - echo "\t<tr>\n"; - foreach ($line as $col_value) { - echo "\t\t<td>$col_value</td>\n"; - } - echo "\t</tr>\n"; -} -echo "</table>\n"; - -// Free resultset -mysql_free_result($result); - -// Closing connection -mysql_close($link); -?> -]]> - </programlisting> - </example> - </para> - </section> </partintro> &reference.mysql.entities.functions; @@ -125,3 +43,4 @@ vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> +
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/mysql/book.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/mysql/book.xml diff -u /dev/null phpdoc/en/reference/mysql/book.xml:1.2 --- /dev/null Wed Dec 26 14:01:35 2007 +++ phpdoc/en/reference/mysql/book.xml Wed Dec 26 14:01:35 2007 @@ -0,0 +1,51 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.2 $ --> +<!-- Purpose: database.vendors --> +<!-- Membership: bundled, external --> + +<book xml:id="book.mysql" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + <title>MySQL</title> + + <!-- {{{ preface --> + <preface xml:id="intro.mysql"> + &reftitle.intro; + <para> + These functions allow you to access MySQL database servers. + More information about MySQL can be found at <link + xlink:href="&url.mysql;">&url.mysql;</link>. + </para> + <para> + Documentation for MySQL can be found at <link + xlink:href="&url.mysql.docs;">&url.mysql.docs;</link>. + </para> + </preface> + <!-- }}} --> + + &reference.mysql.setup; + &reference.mysql.constants; + &reference.mysql.examples; + &reference.mysql.reference; + +</book> + +<!-- Keep this comment at the end of the file +Local variables: +mode: sgml +sgml-omittag:t +sgml-shorttag:t +sgml-minimize-attributes:nil +sgml-always-quote-attributes:t +sgml-indent-step:1 +sgml-indent-data:t +indent-tabs-mode:nil +sgml-parent-document:nil +sgml-default-dtd-file:"../../../manual.ced" +sgml-exposed-tags:nil +sgml-local-catalogs:nil +sgml-local-ecat-files:nil +End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 +--> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/mysql/examples.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/mysql/examples.xml diff -u /dev/null phpdoc/en/reference/mysql/examples.xml:1.2 --- /dev/null Wed Dec 26 14:01:35 2007 +++ phpdoc/en/reference/mysql/examples.xml Wed Dec 26 14:01:35 2007 @@ -0,0 +1,69 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- $Revision: 1.2 $ --> + +<chapter xml:id="mysql.examples" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + &reftitle.examples; + <section xml:id="mysql.examples-basic"> + <para> + This simple example shows how to connect, execute a query, print + resulting rows and disconnect from a MySQL database. + <example> + <title>MySQL extension overview example</title> + <programlisting role="php"> +<![CDATA[ +<?php +// Connecting, selecting database +$link = mysql_connect('mysql_host', 'mysql_user', 'mysql_password') + or die('Could not connect: ' . mysql_error()); +echo 'Connected successfully'; +mysql_select_db('my_database') or die('Could not select database'); + +// Performing SQL query +$query = 'SELECT * FROM my_table'; +$result = mysql_query($query) or die('Query failed: ' . mysql_error()); + +// Printing results in HTML +echo "<table>\n"; +while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) { + echo "\t<tr>\n"; + foreach ($line as $col_value) { + echo "\t\t<td>$col_value</td>\n"; + } + echo "\t</tr>\n"; +} +echo "</table>\n"; + +// Free resultset +mysql_free_result($result); + +// Closing connection +mysql_close($link); +?> +]]> + </programlisting> + </example> + </para> + </section> +</chapter> + +<!-- Keep this comment at the end of the file +Local variables: +mode: sgml +sgml-omittag:t +sgml-shorttag:t +sgml-minimize-attributes:nil +sgml-always-quote-attributes:t +sgml-indent-step:1 +sgml-indent-data:t +indent-tabs-mode:nil +sgml-parent-document:nil +sgml-default-dtd-file:"../../../manual.ced" +sgml-exposed-tags:nil +sgml-local-catalogs:nil +sgml-local-ecat-files:nil +End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 +--> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/mysql/setup.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/mysql/setup.xml diff -u /dev/null phpdoc/en/reference/mysql/setup.xml:1.2 --- /dev/null Wed Dec 26 14:01:35 2007 +++ phpdoc/en/reference/mysql/setup.xml Wed Dec 26 14:01:35 2007 @@ -0,0 +1,58 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.2 $ --> + +<chapter xml:id="mysql.setup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + &reftitle.setup; + + <!-- {{{ Requirements --> + <section xml:id="mysql.requirements"> + &reftitle.required; + <para> + In order to have these functions available, you must compile PHP with + MySQL support. + </para> + </section> + <!-- }}} --> + + <!-- {{{ Installation --> + &reference.mysql.configure; + <!-- }}} --> + + <!-- {{{ Configuration --> + &reference.mysql.ini; + <!-- }}} --> + + <!-- {{{ Resources --> + <section xml:id="mysql.resources"> + &reftitle.resources; + <para> + 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. + </para> + </section> + <!-- }}} --> + +</chapter> + +<!-- Keep this comment at the end of the file +Local variables: +mode: sgml +sgml-omittag:t +sgml-shorttag:t +sgml-minimize-attributes:nil +sgml-always-quote-attributes:t +sgml-indent-step:1 +sgml-indent-data:t +indent-tabs-mode:nil +sgml-parent-document:nil +sgml-default-dtd-file:"../../../manual.ced" +sgml-exposed-tags:nil +sgml-local-catalogs:nil +sgml-local-ecat-files:nil +End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 +--> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/mysql/constants.xml?r1=1.9&r2=1.10&diff_format=u Index: phpdoc/en/reference/mysql/constants.xml diff -u phpdoc/en/reference/mysql/constants.xml:1.9 phpdoc/en/reference/mysql/constants.xml:1.10 --- phpdoc/en/reference/mysql/constants.xml:1.9 Wed Jun 20 22:25:00 2007 +++ phpdoc/en/reference/mysql/constants.xml Wed Dec 26 14:01:35 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.9 $ --> -<section xml:id="mysql.constants" xmlns="http://docbook.org/ns/docbook"> +<!-- $Revision: 1.10 $ --> +<appendix xml:id="mysql.constants" xmlns="http://docbook.org/ns/docbook"> &reftitle.constants; &extension.constants; <para> @@ -81,7 +81,7 @@ </tgroup> </table> </para> -</section> +</appendix> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/mysql/reference.xml?r1=1.24&r2=1.25&diff_format=u Index: phpdoc/en/reference/mysql/reference.xml diff -u phpdoc/en/reference/mysql/reference.xml:1.24 phpdoc/en/reference/mysql/reference.xml:1.25 --- phpdoc/en/reference/mysql/reference.xml:1.24 Mon Dec 10 17:06:06 2007 +++ phpdoc/en/reference/mysql/reference.xml Wed Dec 26 14:01:35 2007 @@ -1,49 +1,10 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.24 $ --> -<!-- Purpose: database.vendors --> -<!-- Membership: bundled, external --> +<!-- $Revision: 1.25 $ --> <reference xml:id="ref.mysql" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> - <title>MySQL Functions</title> - <titleabbrev>MySQL</titleabbrev> + <title>MySQL &Functions;</title> <partintro> - <section xml:id="mysql.intro"> - &reftitle.intro; - <para> - These functions allow you to access MySQL database servers. - More information about MySQL can be found at <link - xlink:href="&url.mysql;">&url.mysql;</link>. - </para> - <para> - Documentation for MySQL can be found at <link - xlink:href="&url.mysql.docs;">&url.mysql.docs;</link>. - </para> - </section> - - <section xml:id="mysql.requirements"> - &reftitle.required; - <para> - In order to have these functions available, you must compile PHP with - MySQL support. - </para> - </section> - - &reference.mysql.configure; - - &reference.mysql.ini; - - <section xml:id="mysql.resources"> - &reftitle.resources; - <para> - 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. - </para> - </section> - - &reference.mysql.constants; - <section xml:id="mysql.notes"> &reftitle.notes; <note> @@ -56,49 +17,6 @@ </para> </note> </section> - - <section xml:id="mysql.examples"> - &reftitle.examples; - <para> - This simple example shows how to connect, execute a query, print - resulting rows and disconnect from a MySQL database. - <example> - <title>MySQL extension overview example</title> - <programlisting role="php"> -<![CDATA[ -<?php -// Connecting, selecting database -$link = mysql_connect('mysql_host', 'mysql_user', 'mysql_password') - or die('Could not connect: ' . mysql_error()); -echo 'Connected successfully'; -mysql_select_db('my_database') or die('Could not select database'); - -// Performing SQL query -$query = 'SELECT * FROM my_table'; -$result = mysql_query($query) or die('Query failed: ' . mysql_error()); - -// Printing results in HTML -echo "<table>\n"; -while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) { - echo "\t<tr>\n"; - foreach ($line as $col_value) { - echo "\t\t<td>$col_value</td>\n"; - } - echo "\t</tr>\n"; -} -echo "</table>\n"; - -// Free resultset -mysql_free_result($result); - -// Closing connection -mysql_close($link); -?> -]]> - </programlisting> - </example> - </para> - </section> </partintro> &reference.mysql.entities.functions; @@ -125,3 +43,4 @@ vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> +