我想用isnull函数检查列中是否有空,但它似乎不起作用.当我将任一字段设置为none时,它仍然返回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"])发布于 2015-01-31 22:59:27
使用或逻辑。
if(is_null($row["Person1"]) || is_null($row["Person2"])){
// stuff here
}或任何在php中的或符号。
https://stackoverflow.com/questions/28257413
复制相似问题