cvs: phpdoc /en/reference/mysqli/functions mysqli-fetch-assoc.xml
| From: | Georg Richter | Date: | Sat, 13 Mar 2004 09:56:14 +0000 |
| Subject: | cvs: phpdoc /en/reference/mysqli/functions mysqli-fetch-assoc.xml | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969359530@lists.php.net to get a copy of this message | ||
georg Sat Mar 13 04:56:14 2004 EDT
Modified files:
/phpdoc/en/reference/mysqli/functions mysqli-fetch-assoc.xml
Log:
changed description for mutliple columns with same names
http://cvs.php.net/diff.php/phpdoc/en/reference/mysqli/functions/mysqli-fetch-assoc.xml?r1=1.9&r2=1.10&ty=u
Index: phpdoc/en/reference/mysqli/functions/mysqli-fetch-assoc.xml
diff -u phpdoc/en/reference/mysqli/functions/mysqli-fetch-assoc.xml:1.9
phpdoc/en/reference/mysqli/functions/mysqli-fetch-assoc.xml:1.10
--- phpdoc/en/reference/mysqli/functions/mysqli-fetch-assoc.xml:1.9 Wed Feb 25 16:59:16 2004
+++ phpdoc/en/reference/mysqli/functions/mysqli-fetch-assoc.xml Sat Mar 13 04:56:11 2004
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.9 $ -->
+<!-- $Revision: 1.10 $ -->
<refentry id="function.mysqli-fetch-assoc">
<refnamediv>
<refname>mysqli_fetch_assoc</refname>
@@ -33,11 +33,11 @@
of one of the result set's columns.
</para>
<para>
- If two or more columns in the result set have the same column name, the associative array
- returned by the <function>mysqli_fetch_assoc</function> function will contain the
value of
- the last column of that name. If you must work with result sets with this properity, the
- <function>mysqli_fetch_row</function> should be used which returns an
numerically-indexed
- array instead.
+ If two or more columns of the result have the same field names,
+ the last column will take precedence. To access the other
+ column(s) of the same name, you either need to access the
+ result with numeric indices by using
+ <function>mysqli_fetch_row</function> or add alias names.
</para>
&database.field-case;
</refsect1>