changed description for mutliple columns with same names

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@153564 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Georg Richter 2004-03-13 09:56:11 +00:00
parent c8ae97db3d
commit 027a265be6

View file

@ -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>