note 39086 added to function.mssql-fetch-array
| From: | panania at 3ringwebs dot com | Date: | Fri, 16 Jan 2004 15:47:24 +0000 |
| Subject: | note 39086 added to function.mssql-fetch-array | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-63684@lists.php.net to get a copy of this message | ||
SWEEEEEETTTTT!
I don't know if this will work for everyone. In PHP 4.0 (for whatever reason) mssql_fetch_assoc
doesn't work, but mssql_fetch_array does both!
In other words, for the same record set, both
mssql_fetch_assoc['id'] &
mssql_fetch_array[0]
will produce the same results! (Provided, of course, that 'id' is the first field in your
table.)
My environment is: Windows NT 4.0 build 1381, IIS 4.0, PHP 4.0 and MS SQL server 7.0 with MS SQL
support enabled.
----
Manual Page -- http://www.php.net/manual/en/function.mssql-fetch-array.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+39086
Delete -- http://master.php.net/manage/user-notes.php?action=delete+39086&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+39086&report=yes
Search -- http://master.php.net/manage/user-notes.php