note 39085 deleted from function.mssql-fetch-assoc by nlopess
| From: | nlopess@php.net | Date: | Fri, 16 Jan 2004 15:49:22 +0000 |
| Subject: | note 39085 deleted from function.mssql-fetch-assoc by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-63686@lists.php.net to get a copy of this message | ||
Note Submitter: panania@3ringwebs.com
----
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 weith MS SQL
support enabled.