Re: mysqli-fetch-assoc

From: Date: Fri, 12 Mar 2004 22:11:20 +0000
Subject: Re: mysqli-fetch-assoc
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969359527@lists.php.net to get a copy of this message
> Hi, > > There is a paragraph that i don´t understand that says: > > 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. > > In the part where is said: > 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. > > For my understanding, it should be : > If you must NOT work with result sets with this property, the > <function>mysqli_fetch_row</function> > should be used which returns an numerically-indexed array instead. > I believe the way georg wrote it is correct, aside from a misspelling and 'function' should be after mysqli_fetch_row. I think it may be best to e-mail georg any suggestions/patches you may have as he is working hard on the mysqli docs. > Or something similar. But of course it is just my opinion, so I’ll wait > for advice. > > Enrique García Briones > > Kenneth

« previous php.doc (#969359527) next »