6
I have a problem presenting the Query.
I got the field alvaraValidade
which only receives Data fields.
When I put nothing in that field, the field date
is guarded as 0000-00-00
.
$sql = "Select * From tb_trabalhador where AlvaraNumero is Not Null and AlvaraValidade is Not Null ...
And in this query I want to show those that are not NULL, that is, those that are NULL are not shown. And in this case the null field does not work because the field is 0000-00-00
.
I’ve tried to:
(...) AlvaraValidade is != '0000-00-00'
But it doesn’t work.
By the way this query has several conditions, you are sure that the problem is the
AlvaraValidade
?– rray
Post the table structure, it is much easier to help.
– Bacco