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?