Ask a Question related to PHP Notes, Design and Development.
-
mysql@polyzing.com #1
note 33981 added to function.mysql-fetch-row
It is probably worth pointing out that the array elements will actually be of type string, OR NULL if the field is null in the database.
Thus, either use a double equal comparison to look for empty or null
Or, use a triple equal comparison to be able to distinguish the two cases
e.g.
if ($field === '') echo "Empty, not NULL\n";
if ($field === NULL) echo "NULL\n";
if ($field == '') echo "Empty or NULL\n";
----
Manual Page -- [url]http://www.php.net/manual/en/function.mysql-fetch-row.php[/url]
Edit Note -- [url]http://master.php.net/manage/user-notes.php?action=edit+33981[/url]
Delete Note -- [url]http://master.php.net/manage/user-notes.php?action=delete+33981&report=yes[/url]
Reject Note -- [url]http://master.php.net/manage/user-notes.php?action=reject+33981&report=yes[/url]
mysql@polyzing.com Guest
-
note 33928 added to function.odbc-fetch-array
It seems as if this function doesn't work in PHP 4.3.2. The "Call to Undefined Function" error occurs when calling this function. ---- Manual Page... -
note 33905 added to function.mysql-fetch-row
i'm running the php-nuke 6.7 vhen i go to http://www.user**.net/admin.php?op=LinksListModRequests Warning: mysql_fetch_row(): supplied argument... -
note 33901 added to function.mssql-fetch-object
<?php /* A simple example using mssql_fetch_object */ $conexao = mssql_connect("myServer","myUser","myPass");... -
note 33659 added to function.mysql-fetch-array
Testing for a null value is much easier than described above. Just test with if (is_null($row)) echo "IS NULL"; ---- Manual Page --... -
note 33622 added to function.odbc-fetch-row
Hey, This odbc_fetch_row() doesn't works... -_T Is Not this function usage same to mysql_fetch_row() ??? ex) $row = odbc_fetch_row($result);...



Reply With Quote

