I have a problem submitting Query.
I have the
alvaraValidade field that only receives Date fields.
When I do not put anything in this field, the
date field is saved as
$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
(...) AlvaraValidade is != '0000-00-00'
But it does not work.