From 027a265be6017291d89ec0c50e1ad3df197513ca Mon Sep 17 00:00:00 2001 From: Georg Richter Date: Sat, 13 Mar 2004 09:56:11 +0000 Subject: [PATCH] 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 --- reference/mysqli/functions/mysqli-fetch-assoc.xml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/reference/mysqli/functions/mysqli-fetch-assoc.xml b/reference/mysqli/functions/mysqli-fetch-assoc.xml index bf21dfe450..07d38fd398 100644 --- a/reference/mysqli/functions/mysqli-fetch-assoc.xml +++ b/reference/mysqli/functions/mysqli-fetch-assoc.xml @@ -1,5 +1,5 @@ - + mysqli_fetch_assoc @@ -33,11 +33,11 @@ of one of the result set's columns. - If two or more columns in the result set have the same column name, the associative array - returned by the mysqli_fetch_assoc function will contain the value of - the last column of that name. If you must work with result sets with this properity, the - mysqli_fetch_row 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 + mysqli_fetch_row or add alias names. &database.field-case;