|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-10-03 10:33 UTC] nicolas dot breuer at belcenter dot be
[2006-10-03 15:12 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 06 15:00:01 2026 UTC |
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.