note 48530 added to function.mssql-fetch-array

From: Date: Tue, 28 Dec 2004 16:16:39 +0000
Subject: note 48530 added to function.mssql-fetch-array
Groups: php.notes 
Request: Send a blank email to php-notes+get-82410@lists.php.net to get a copy of this message
For fields of the type BIT, the NULLs are distinguishable from 0 values by the next statement: <?php if ($bitValue === '0') { echo 'This is a SQL-server NULL value for a bit field'; } else { echo 'Value is not null'; } ?> In the fields of type BIT this: ($strValue === null) won't work. PHP 4.2.3 as ISAPI on Windows 2000 Server/SQL Server 2000 ---- Manual Page -- http://www.php.net/manual/en/function.mssql-fetch-array.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+48530 Delete -- http://master.php.net/manage/user-notes.php?action=delete+48530&report=yes Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+48530&report=yes&reason=bad+code Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+48530&report=yes&reason=spam Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+48530&report=yes&reason=useless+example Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+48530&report=yes&reason=contains+commercial+links Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+48530&report=yes&reason=useless+note Reject -- http://master.php.net/manage/user-notes.php?action=reject+48530&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#82410) next »