Php 使用鞋垫功能检查任一列是否为空

Php 使用鞋垫功能检查任一列是否为空,php,mysql,sql,select,Php,Mysql,Sql,Select,我想使用isnull函数检查其中一列是否为null,但它似乎不起作用。。。当我将任一字段设置为“无”时,它仍然返回false $result = mysql_query("select Apps.Email from Apps"); $row = mysql_fetch_array($result); 我的if语句: if(is_null($row["Person1"], $row["Person2"])){ // stuff here } 当我将其更改为: if (is_null($row

我想使用
isnull
函数检查其中一列是否为null,但它似乎不起作用。。。当我将任一字段设置为“无”时,它仍然返回false

$result = mysql_query("select Apps.Email from Apps");
$row = mysql_fetch_array($result);
我的
if
语句:

if(is_null($row["Person1"], $row["Person2"])){
// stuff here
}
当我将其更改为:

if (is_null($row["Person1"])
使用逻辑或逻辑

if(is_null($row["Person1"]) || is_null($row["Person2"])){
// stuff here
}

或php中的或符号。

不要使用
mysql.*
函数。这些都是去润滑的
是否为空
只接受…@sjagr那么还有其他选择吗?