我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

不工作!== NULL

In my app I have a table in where I'd like lo highlight some rows if a date field is empty, here's my code:

<table>
<?php foreach ($conts as $cont): ?>
<tr <?php if ($cont['Cont']['shdate']!==NULL) echo 'class="bg-success"'; ?>>
</tr>
<?php endforeach; ?>
</table>

It does not work although I've checked in the database and the field is NULL, why could this be happening?

近期文章

  • homebrew php@7.1 intl和mcrypt无法正常工作
  • 如何在get请求中发送下一个cookie?
  • Laravel Eloquent:在null上调用成员函数connection()
  • 如何将自定义表单数据附加到HelloSign Api模板?
  • Shopify订单API PayPal网关
  • 调试时停止PhpStorm打开文件
  • laravel中缺少必需参数
  • SQL“UPDATE”给出错误
  • 如何在laravel 5.6中检索2个已定义的关系
  • MariaDB 10.2 json插入对PHP无效
  • PHP Curl通信错误到内部服务器
  • 多维数组 - 仅打印特定键值
  • 子必需方法可选签名
  • 如何在登录控制器中使用Crypt加密登录
  • 使用自定义网址路由::重定向(/ products / {name})
  • 为AJAX请求并行获取Apache PHP响应
  • 如何摆脱ldap_connect()错误
  • 如何自定义laravel登录以添加通用密钥?
  • HTML和Php表单不插入或更新数据到MySQL
  • 不要安装Symfony Flex

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华