0
All results are printed on the screen except when it is 0
and I need that number 0
be printed. If it is NULL
it satisfies the condition below and correctly prints the hyphen.
if($dados['dado_1']===null){
echo "<td width='11%' style='text-align:center;'><p><br/>-</p></td>";
}else{
echo "<td width='11%' style='text-align:center;><p><br/>".$dados['dado_1']."</p></td>";
}
such verification
===
is for data onlyBOOLEAN
, withnull
won’t work.– William Aparecido Brandino
Oops, thanks, good to know. But even switching to == does not solve the problem.
– Heathz
The data is of the whole type?
– Raizant
No, they’re like FLOAT
– Heathz