将光标移到/点击文章中的句子上,可以查看译文。      显示繁体中文内容    显示简体中文内容

mysql - PHP Check for NULL
mysql PHP检查是否为空

75 3

Here is the below Code :


$query = mysql_query("SELECT * FROM tablex");



if ($result = mysql_fetch_array($query)){



 if ($result['column'] == NULL) { print"<input type='checkbox'/>"; }


 else { print"<input type='checkbox' checked/>"; }


}



If the values are NOT NULL i still get the uncheked box.am i doing something wrong from above, shoudnt $result['column'] == NULL work?

Any Ideas?

时间: 原作者:

...