I get some data from MySQL, and I print the data as echo $row['ref'];
.
Sometimes echo $row['ref'];
returns empty result. I want to compose a condition like echo isset($row['ref']) ? $row['ref']:'Unknown';
which will show Unknown
word if echo $row['ref'];
returns empty result.
Thanks in advance.