note 33422 modified in function.mssql-fetch-array by pollita
| From: | pollita@php.net | Date: | Wed, 25 Jun 2003 15:33:31 +0000 |
| Subject: | note 33422 modified in function.mssql-fetch-array by pollita | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-50995@lists.php.net to get a copy of this message | ||
[Editor's Note: NULLs *are* distinguishable from 0. See the manual section on comparison
operators. ]
microsoft sql 2000 server
php running on windows 2000
Using the $row = mssql_fetch_array($result)
A null value will return 0, this is a problem if you are using 0 and some identifier for a value.
you should convert all nulls to something like -1 or "NO VALUE"
--was--
microsoft sql 2000 server
php running on windows 2000
Using the $row = mssql_fetch_array($result)
A null value will return 0, this is a problem if you are using 0 and some identifier for a value.
you should convert all nulls to something like -1 or "NO VALUE"
http://www.php.net/manual/en/function.mssql-fetch-array.php