cvs: /phpdoc/functions mysql.sgml
| From: | Egon Schmid | Date: | Mon, 06 Sep 1999 19:21:31 +0000 |
| Subject: | cvs: /phpdoc/functions mysql.sgml | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-10630@lists.php.net to get a copy of this message | ||
eschmid Mon Sep 6 15:21:31 1999 EDT
Modified files:
/phpdoc/functions mysql.sgml
Log:
Some cosmetics.
Index: phpdoc/functions/mysql.sgml
diff -u phpdoc/functions/mysql.sgml:1.12 phpdoc/functions/mysql.sgml:1.13
--- phpdoc/functions/mysql.sgml:1.12 Tue Aug 31 15:58:15 1999
+++ phpdoc/functions/mysql.sgml Mon Sep 6 15:21:30 1999
@@ -170,31 +170,11 @@
pointer of the MySQL result associated with the specified result
identifier to point to the specified row number. The next call
to <function>mysql_fetch_row</function> would return that row.
+ <para>
+ <parameter>Row_number</parameter> starts at 0.
</refsect1>
</refentry>
-<!--
- <refentry id="function.mysql-dbname">
- <refnamediv>
- <refname>mysql_dbname</refname>
- <refpurpose>get current MySQL database name</refpurpose>
- </refnamediv>
- <refsect1>
- <title>Description</title>
- <funcsynopsis>
- <funcdef>string <function>mysql_dbname</function></funcdef>
- <paramdef>string <parameter>result</parameter></paramdef>
- <paramdef>int <parameter>i</parameter></paramdef>
- </funcsynopsis>
- <para>
- <function>mysql_dbname</function> returns the database name
- stored in position <parameter>i</parameter> of the result pointer
- returned from the <function>mysql_list_dbs</function>
- function. The <function>mysql_num_rows</function> function can be
- used to determine how many database names are available.
- </refsect1>
- </refentry>
--->
<refentry id="function.mysql-db-query">
<refnamediv>
@@ -997,8 +977,9 @@
<funcsynopsis>
<funcdef>int <function>mysql_query</function></funcdef>
<paramdef>string <parameter>query</parameter></paramdef>
- <paramdef>int <parameter><optional>link_identifier</optional>
- </parameter></paramdef>
+ <paramdef>int
+ <parameter><optional>link_identifier</optional></parameter>
+ </paramdef>
</funcsynopsis>
<para>
<function>mysql_query</function> sends a query to the currently
@@ -1153,7 +1134,7 @@
<refentry id="function.mysql-tablename">
<refnamediv>
<refname>mysql_tablename</refname>
- <refpurpose>get table name of field</refpurpose>
+ <refpurpose>Get table name of field</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
@@ -1169,11 +1150,12 @@
<function>mysql_num_rows</function> function may be used to
determine the number of tables in the result pointer.
- <example><title>mysql_tablename() example</title>
- <programlisting role=php>
+ <example>
+ <title><function>mysql_tablename</function> example</title>
+ <programlisting role="php">
<?php
mysql_connect ("localhost:3306");
-$result = mysql_listtables ("wisconsin");
+$result = mysql_list_tables ("wisconsin");
$i = 0;
while ($i < mysql_num_rows ($result)) {
$tb_names[$i] = mysql_tablename ($result, $i);