note 39085 added to function.mssql-fetch-assoc
| From: | panania at 3ringwebs dot com | Date: | Fri, 16 Jan 2004 15:46:21 +0000 |
| Subject: | note 39085 added to function.mssql-fetch-assoc | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-63683@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 weith MS SQL
support enabled.
----
Manual Page -- http://www.php.net/manual/en/function.mssql-fetch-assoc.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+39085
Delete -- http://master.php.net/manage/user-notes.php?action=delete+39085&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+39085&report=yes
Search -- http://master.php.net/manage/user-notes.php