cvs: phpdoc /en/reference/msql book.xml constants.xml examples.xml reference.xml setup.xml
| From: | Hannes Magnusson | Date: | Wed, 26 Dec 2007 13:55:58 +0000 |
| Subject: | cvs: phpdoc /en/reference/msql book.xml constants.xml examples.xml reference.xml setup.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-826@lists.php.net to get a copy of this message | ||
bjori Wed Dec 26 13:55:58 2007 UTC
Modified files:
/phpdoc/en/reference/msql 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 msql.examples
the orginal msql.examples section was renamed to msql.examples-basic
- Moved the configure & ini entities to setup.xml
- Moved the resources section to setup.xml
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/msql/book.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/msql/book.xml diff -u /dev/null phpdoc/en/reference/msql/book.xml:1.2 --- /dev/null Wed Dec 26 13:55:58 2007 +++ phpdoc/en/reference/msql/book.xml Wed Dec 26 13:55:58 2007 @@ -0,0 +1,47 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.2 $ --> +<!-- Purpose: database.vendors --> +<!-- Membership: bundled, external --> + +<book xml:id="book.msql" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + <title>mSQL</title> + + <!-- {{{ preface --> + <preface xml:id="intro.msql"> + &reftitle.intro; + <para> + These functions allow you to access mSQL database servers. More + information about mSQL can be found at + <link xlink:href="&url.msql;">&url.msql;</link>. + </para> + </preface> + <!-- }}} --> + + &reference.msql.setup; + &reference.msql.constants; + &reference.msql.examples; + &reference.msql.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/msql/examples.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/msql/examples.xml diff -u /dev/null phpdoc/en/reference/msql/examples.xml:1.2 --- /dev/null Wed Dec 26 13:55:58 2007 +++ phpdoc/en/reference/msql/examples.xml Wed Dec 26 13:55:58 2007 @@ -0,0 +1,71 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- $Revision: 1.2 $ --> + +<chapter xml:id="msql.examples" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + &reftitle.examples; + <section xml:id="msql.examples-basic"> + <para> + This simple example shows how to connect, execute a query, print + resulting rows and disconnect from a mSQL database. + <example> + <title>mSQL usage example</title> + <programlisting role="php"> +<![CDATA[ +<?php +/* Connecting, selecting database */ +$link = msql_connect('localhost', 'username', 'password') + or die('Could not connect : ' . msql_error($link)); + +msql_select_db('database', $link) + or die('Could not select database'); + +/* Issue SQL query */ +$query = 'SELECT * FROM my_table'; +$result = msql_query($query, $link) or die('Query failed : ' . msql_error()); + +/* Printing results in HTML */ +echo "<table>\n"; +while ($row = msql_fetch_array($result, MSQL_ASSOC)) { + echo "\t<tr>\n"; + foreach ($row as $col_value) { + echo "\t\t<td>$col_value</td>\n"; + } + echo "\t</tr>\n"; +} +echo "</table>\n"; + +/* Free result set */ +msql_free_result($result); + +/* Close connection */ +msql_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/msql/setup.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/msql/setup.xml diff -u /dev/null phpdoc/en/reference/msql/setup.xml:1.2 --- /dev/null Wed Dec 26 13:55:58 2007 +++ phpdoc/en/reference/msql/setup.xml Wed Dec 26 13:55:58 2007 @@ -0,0 +1,55 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.2 $ --> + +<chapter xml:id="msql.setup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + &reftitle.setup; + + <!-- {{{ Requirements --> + <section xml:id="msql.requirements"> + &reftitle.required; + &no.requirement; + </section> + <!-- }}} --> + + <!-- {{{ Installation --> + &reference.msql.configure; + <!-- }}} --> + + <!-- {{{ Configuration --> + &reference.msql.ini; + <!-- }}} --> + + <!-- {{{ Resources --> + <section xml:id="msql.resources"> + &reftitle.resources; + <para> + There are two resource types used in the mSQL 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/msql/constants.xml?r1=1.3&r2=1.4&diff_format=u Index: phpdoc/en/reference/msql/constants.xml diff -u phpdoc/en/reference/msql/constants.xml:1.3 phpdoc/en/reference/msql/constants.xml:1.4 --- phpdoc/en/reference/msql/constants.xml:1.3 Wed Jun 20 22:24:59 2007 +++ phpdoc/en/reference/msql/constants.xml Wed Dec 26 13:55:58 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<section xml:id="msql.constants" xmlns="http://docbook.org/ns/docbook"> +<!-- $Revision: 1.4 $ --> +<appendix xml:id="msql.constants" xmlns="http://docbook.org/ns/docbook"> &reftitle.constants; &extension.constants; <variablelist> @@ -38,7 +38,7 @@ </listitem> </varlistentry> </variablelist> -</section> +</appendix> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/msql/reference.xml?r1=1.16&r2=1.17&diff_format=u Index: phpdoc/en/reference/msql/reference.xml diff -u phpdoc/en/reference/msql/reference.xml:1.16 phpdoc/en/reference/msql/reference.xml:1.17 --- phpdoc/en/reference/msql/reference.xml:1.16 Mon Dec 10 17:06:06 2007 +++ phpdoc/en/reference/msql/reference.xml Wed Dec 26 13:55:58 2007 @@ -1,82 +1,8 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.16 $ --> -<!-- Purpose: database.vendors --> -<!-- Membership: bundled, external --> +<!-- $Revision: 1.17 $ --> <reference xml:id="ref.msql" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>mSQL Functions</title> - <titleabbrev>mSQL</titleabbrev> - <partintro> - - <section xml:id="msql.intro"> - &reftitle.intro; - <para> - These functions allow you to access mSQL database servers. More - information about mSQL can be found at - <link xlink:href="&url.msql;">&url.msql;</link>. - </para> - </section> - - &reference.msql.configure; - - &reference.msql.ini; - - <section xml:id="msql.resources"> - &reftitle.resources; - <para> - There are two resource types used in the mSQL 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.msql.constants; - - <section xml:id="msql.examples"> - &reftitle.examples; - <para> - This simple example shows how to connect, execute a query, print - resulting rows and disconnect from a mSQL database. - <example> - <title>mSQL usage example</title> - <programlisting role="php"> -<![CDATA[ -<?php -/* Connecting, selecting database */ -$link = msql_connect('localhost', 'username', 'password') - or die('Could not connect : ' . msql_error($link)); - -msql_select_db('database', $link) - or die('Could not select database'); - -/* Issue SQL query */ -$query = 'SELECT * FROM my_table'; -$result = msql_query($query, $link) or die('Query failed : ' . msql_error()); - -/* Printing results in HTML */ -echo "<table>\n"; -while ($row = msql_fetch_array($result, MSQL_ASSOC)) { - echo "\t<tr>\n"; - foreach ($row as $col_value) { - echo "\t\t<td>$col_value</td>\n"; - } - echo "\t</tr>\n"; -} -echo "</table>\n"; - -/* Free result set */ -msql_free_result($result); - -/* Close connection */ -msql_close($link); -?> -]]> - </programlisting> - </example> - </para> - </section> - - </partintro> &reference.msql.entities.functions;
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/msql/book.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/msql/book.xml diff -u /dev/null phpdoc/en/reference/msql/book.xml:1.2 --- /dev/null Wed Dec 26 13:55:58 2007 +++ phpdoc/en/reference/msql/book.xml Wed Dec 26 13:55:58 2007 @@ -0,0 +1,47 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.2 $ --> +<!-- Purpose: database.vendors --> +<!-- Membership: bundled, external --> + +<book xml:id="book.msql" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + <title>mSQL</title> + + <!-- {{{ preface --> + <preface xml:id="intro.msql"> + &reftitle.intro; + <para> + These functions allow you to access mSQL database servers. More + information about mSQL can be found at + <link xlink:href="&url.msql;">&url.msql;</link>. + </para> + </preface> + <!-- }}} --> + + &reference.msql.setup; + &reference.msql.constants; + &reference.msql.examples; + &reference.msql.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/msql/examples.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/msql/examples.xml diff -u /dev/null phpdoc/en/reference/msql/examples.xml:1.2 --- /dev/null Wed Dec 26 13:55:58 2007 +++ phpdoc/en/reference/msql/examples.xml Wed Dec 26 13:55:58 2007 @@ -0,0 +1,71 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- $Revision: 1.2 $ --> + +<chapter xml:id="msql.examples" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + &reftitle.examples; + <section xml:id="msql.examples-basic"> + <para> + This simple example shows how to connect, execute a query, print + resulting rows and disconnect from a mSQL database. + <example> + <title>mSQL usage example</title> + <programlisting role="php"> +<![CDATA[ +<?php +/* Connecting, selecting database */ +$link = msql_connect('localhost', 'username', 'password') + or die('Could not connect : ' . msql_error($link)); + +msql_select_db('database', $link) + or die('Could not select database'); + +/* Issue SQL query */ +$query = 'SELECT * FROM my_table'; +$result = msql_query($query, $link) or die('Query failed : ' . msql_error()); + +/* Printing results in HTML */ +echo "<table>\n"; +while ($row = msql_fetch_array($result, MSQL_ASSOC)) { + echo "\t<tr>\n"; + foreach ($row as $col_value) { + echo "\t\t<td>$col_value</td>\n"; + } + echo "\t</tr>\n"; +} +echo "</table>\n"; + +/* Free result set */ +msql_free_result($result); + +/* Close connection */ +msql_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/msql/setup.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/msql/setup.xml diff -u /dev/null phpdoc/en/reference/msql/setup.xml:1.2 --- /dev/null Wed Dec 26 13:55:58 2007 +++ phpdoc/en/reference/msql/setup.xml Wed Dec 26 13:55:58 2007 @@ -0,0 +1,55 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.2 $ --> + +<chapter xml:id="msql.setup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + &reftitle.setup; + + <!-- {{{ Requirements --> + <section xml:id="msql.requirements"> + &reftitle.required; + &no.requirement; + </section> + <!-- }}} --> + + <!-- {{{ Installation --> + &reference.msql.configure; + <!-- }}} --> + + <!-- {{{ Configuration --> + &reference.msql.ini; + <!-- }}} --> + + <!-- {{{ Resources --> + <section xml:id="msql.resources"> + &reftitle.resources; + <para> + There are two resource types used in the mSQL 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/msql/constants.xml?r1=1.3&r2=1.4&diff_format=u Index: phpdoc/en/reference/msql/constants.xml diff -u phpdoc/en/reference/msql/constants.xml:1.3 phpdoc/en/reference/msql/constants.xml:1.4 --- phpdoc/en/reference/msql/constants.xml:1.3 Wed Jun 20 22:24:59 2007 +++ phpdoc/en/reference/msql/constants.xml Wed Dec 26 13:55:58 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<section xml:id="msql.constants" xmlns="http://docbook.org/ns/docbook"> +<!-- $Revision: 1.4 $ --> +<appendix xml:id="msql.constants" xmlns="http://docbook.org/ns/docbook"> &reftitle.constants; &extension.constants; <variablelist> @@ -38,7 +38,7 @@ </listitem> </varlistentry> </variablelist> -</section> +</appendix> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/msql/reference.xml?r1=1.16&r2=1.17&diff_format=u Index: phpdoc/en/reference/msql/reference.xml diff -u phpdoc/en/reference/msql/reference.xml:1.16 phpdoc/en/reference/msql/reference.xml:1.17 --- phpdoc/en/reference/msql/reference.xml:1.16 Mon Dec 10 17:06:06 2007 +++ phpdoc/en/reference/msql/reference.xml Wed Dec 26 13:55:58 2007 @@ -1,82 +1,8 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.16 $ --> -<!-- Purpose: database.vendors --> -<!-- Membership: bundled, external --> +<!-- $Revision: 1.17 $ --> <reference xml:id="ref.msql" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>mSQL Functions</title> - <titleabbrev>mSQL</titleabbrev> - <partintro> - - <section xml:id="msql.intro"> - &reftitle.intro; - <para> - These functions allow you to access mSQL database servers. More - information about mSQL can be found at - <link xlink:href="&url.msql;">&url.msql;</link>. - </para> - </section> - - &reference.msql.configure; - - &reference.msql.ini; - - <section xml:id="msql.resources"> - &reftitle.resources; - <para> - There are two resource types used in the mSQL 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.msql.constants; - - <section xml:id="msql.examples"> - &reftitle.examples; - <para> - This simple example shows how to connect, execute a query, print - resulting rows and disconnect from a mSQL database. - <example> - <title>mSQL usage example</title> - <programlisting role="php"> -<![CDATA[ -<?php -/* Connecting, selecting database */ -$link = msql_connect('localhost', 'username', 'password') - or die('Could not connect : ' . msql_error($link)); - -msql_select_db('database', $link) - or die('Could not select database'); - -/* Issue SQL query */ -$query = 'SELECT * FROM my_table'; -$result = msql_query($query, $link) or die('Query failed : ' . msql_error()); - -/* Printing results in HTML */ -echo "<table>\n"; -while ($row = msql_fetch_array($result, MSQL_ASSOC)) { - echo "\t<tr>\n"; - foreach ($row as $col_value) { - echo "\t\t<td>$col_value</td>\n"; - } - echo "\t</tr>\n"; -} -echo "</table>\n"; - -/* Free result set */ -msql_free_result($result); - -/* Close connection */ -msql_close($link); -?> -]]> - </programlisting> - </example> - </para> - </section> - - </partintro> &reference.msql.entities.functions;