note 55867 added to function.mysql-fetch-array
| From: | michael at neuromatter dot net | Date: | Tue, 16 Aug 2005 05:46:55 +0000 |
| Subject: | note 55867 added to function.mysql-fetch-array | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-93707@lists.php.net to get a copy of this message | ||
Be very careful when using mysql_fetch_array without a second parameter because by default you get
both an associative and numeric array. This means if you have code that is based on count($row) the
count will actually be double the number of columns.
----
Manual Page -- http://www.php.net/manual/en/function.mysql-fetch-array.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+55867
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+55867&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+55867&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+55867&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+55867&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+55867&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+55867&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+55867&report=yes
Search -- http://master.php.net/manage/user-notes.php