Bug #12895 Updated: mysql_fetch_row
| From: | cynic@php.net | Date: | Wed, 29 Aug 2001 15:15:52 +0000 |
| Subject: | Bug #12895 Updated: mysql_fetch_row | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-64626@lists.php.net to get a copy of this message | ||
ID: 12895
Updated by: cynic
Reported By: lampa@brutus.troja.mff.cuni.cz
Old Status: Bogus
Status: Open
Old Bug Type: MySQL related
Bug Type: Feature/Change Request
Operating System: Debian 2.2
PHP Version: 4.0.6
New Comment:
assuming you meant you missed nl => null, and the dump should've ended with [2] => null
instead of [2] => 2, this is a 'feature', and you're not the only one questioning
this behavior. changing to change request. I hope Zeev notices this, and finally allows this change
in. :)
Previous Comments:
------------------------------------------------------------------------
[2001-08-29 07:48:10] lampa@brutus.troja.mff.cuni.cz
ohh sorry, should be mysql_fetch_array, sorry for mistake
------------------------------------------------------------------------
[2001-08-28 04:40:10] sander@php.net
mysql_fetch_row does NOT return an associative array. Use mysql_fetch_array or mysql_fetch_assoc
instead.
------------------------------------------------------------------------
[2001-08-22 09:49:07] lampa@brutus.troja.mff.cuni.cz
when i call mysql_fetch_row($result, MYSQL_BOTH) a should got associte array, but don't.
if there are some fields with NULL only number is shown not name of field
-------------
Example:
fields in db: id, t1, n1
value 0, 'text', NULL
after mysql_fetch_row($result, MYSQL_BOTH), print_r returns:
Array([0] => 5 [id] => 5 [1] => 'text' [t1] => 'text' [2] => 2)
there is missing n1 => 2
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=12895&edit=1