even after commenting out the echo function its still displaying null on a null value.i jx want ti use it a function not to output.
<?php
if (var_dump($row['display_photo']) === null) {
//echo "null";
}else {
echo "not null";
}
?>
if(empty($row['display_photo']))php.net/manual/en/function.empty.phpvar_dumpfunction from your condition?isset($row['display_photo'])is sufficient "Determine if a variable is set and is not NULL". also, where in the world did you get the idea that var_dump() would be a good idea inside of a conditional statement like that?$row['display_photo']always exist?