How does one refer to empty cells in mysql?

I have tried the following variations but non works

if($row[‘relation’] = “” ){

if($row[‘relation’] = ‘’ ){

if($row[‘relation’] = NULL ){

if($row[‘relation’] IS NULL ){

if(strlen($row[‘relation’]) = 0 ){

So how would one refer to a cell that is empty?

if($row[‘relation’] != “” ){

or if(isset($row[‘relation’])){
Dunno about isset one for sql.

I believe it depends on the formatting of the field, I would assume “” or null would find an empty field, but perhaps you have whitespace. Try " ".

Sponsor our Newsletter | Privacy Policy | Terms of Service