@$c_id = $_POST['numero'];
@$data_aa = $_POST['data_aa']; // Data esta vazio
if($data_aa == ''){
$var = "oi";
echo "$var";
}
If I put the variable $var
out of if()
, it works normally.
@$c_id = $_POST['numero'];
@$data_aa = $_POST['data_aa']; // Data esta vazio
if($data_aa == ''){
$var = "oi";
echo "$var";
}
If I put the variable $var
out of if()
, it works normally.
I was able to do !=
empty )
if ($data_aa != null) {
// funcionou!!!
}