If have a piece of code that gets some data from a sql database
$comms = $row['comments'] ;
if ($comms != "") {
$tooltip = "<b>Notes :</b> $comms </br> ";
}
What i want to do is display the result ONLY if there is something in the data. I am using the if statement to determine if $comms has any data in it but everything i try ("" " " 0 false) returns true. What is the value of nothing when returned (Although I have not included all the code I assure you that there is a value returned in $comms)
Any help would be great , thanks