#39023 [Opn->Bgs]: problem with if when value = 0
| From: | tony2001@php.net | Date: | Tue, 03 Oct 2006 15:12:04 +0000 |
| Subject: | #39023 [Opn->Bgs]: problem with if when value = 0 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-103033@lists.php.net to get a copy of this message | ||
ID: 39023
Updated by: tony2001@php.net
Reported By: nicolas dot breuer at belcenter dot be
-Status: Open
+Status: Bogus
Bug Type: *General Issues
Operating System: Linux
PHP Version: 4.4.4
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
Previous Comments:
------------------------------------------------------------------------
[2006-10-03 10:33:26] nicolas dot breuer at belcenter dot be
some details to be clear :
Expected result:
----------------
0
0
0
Actual result:
--------------
0
0
0
0
------------------------------------------------------------------------
[2006-10-03 10:27:56] nicolas dot breuer at belcenter dot be
Description:
------------
When i retrieve a value from a mysql db,
value returned is nothing or "0" , "if" command
is not executed as well.
Reproduce code:
---------------
// in a while process
$value="";
$reqt = mysql_query("select value from table where ref='$xxx'");
$value = mysql_result($reqt,0,"value");
if ($value=="0"){
echo "$value"; }
Expected result:
----------------
each echo value should be "0"
Actual result:
--------------
i have some results with $value = nothing.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=39023&edit=1