gwynne Sun Sep 9 15:30:50 2007 UTC
Modified files:
/phpdoc/en/reference/pdo/functions PDOStatement-fetch.xml
Log:
- FETCH_BOUND is respective to bindColumn(), not bindParam()
- Added return values section for completeness
- Fixed up See Also section
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/pdo/functions/PDOStatement-fetch.xml?r1=1.15&r2=1.16&diff_format=u
Index: phpdoc/en/reference/pdo/functions/PDOStatement-fetch.xml
diff -u phpdoc/en/reference/pdo/functions/PDOStatement-fetch.xml:1.15
phpdoc/en/reference/pdo/functions/PDOStatement-fetch.xml:1.16
--- phpdoc/en/reference/pdo/functions/PDOStatement-fetch.xml:1.15 Wed Jun
20 22:25:12 2007
+++ phpdoc/en/reference/pdo/functions/PDOStatement-fetch.xml Sun Sep 9
15:30:50 2007
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='iso-8859-1'?>
-<!-- $Revision: 1.15 $ -->
+<!-- $Revision: 1.16 $ -->
<refentry xml:id="function.PDOStatement-fetch"
xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>PDOStatement->fetch()</refname>
@@ -50,7 +50,7 @@
<listitem><para>
<literal>PDO::FETCH_BOUND</literal>: returns &true; and assigns the
values of the columns in your result set to the PHP variables to which
- they were bound with the <xref
linkend="function.PDOStatement-bindParam" />
+ they were bound with the <xref
linkend="function.PDOStatement-bindColumn" />
method
</para></listitem>
<listitem><para>
@@ -121,6 +121,14 @@
</para>
</refsect1>
+ <refsect1 role="returnvalues">
+ &reftitle.returnvalues;
+ <para>
+ The return value of this function on success depends on the fetch type. In
+ all cases, &false; is returned on failure.
+ </para>
+ </refsect1>
+
<refsect1 role="examples">
&reftitle.examples;
<para>
@@ -256,10 +264,11 @@
&reftitle.seealso;
<para>
<simplelist>
- <member><xref linkend="function.PDO-query" /></member>
+ <member><xref linkend="function.PDO-prepare" /></member>
+ <member><xref linkend="function.PDOStatement-execute" /></member>
<member><xref linkend="function.PDOStatement-fetchAll" /></member>
<member><xref linkend="function.PDOStatement-fetchColumn" /></member>
- <member><xref linkend="function.PDO-prepare" /></member>
+ <member><xref linkend="function.PDOStatement-fetchObject" /></member>
<member><xref linkend="function.PDOStatement-setFetchMode" /></member>
</simplelist>
</para>