note 33108 added to function.odbc-exec
| From: | exc at vituttaa dot net | Date: | Tue, 17 Jun 2003 05:32:14 +0000 |
| Subject: | note 33108 added to function.odbc-exec | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-50457@lists.php.net to get a copy of this message | ||
I will need this, can you help? How do I check if odbc_result($result, 'data') is empty
like 0, NULL? And how can I print those zeros to table... it only prints if there is a value but I
need those ZEROS TOO.
if odbc_result($result, 'data') is empty then do something else like:
if(odbc_result($result, 'data') == '')
{
echo odbc_result($result, 'data_other')
}
else
{
echo odbc_result($result, 'data')
}
----
Manual Page -- http://www.php.net/manual/en/function.odbc-exec.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+33108
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+33108&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+33108&report=yes