Execute($q); if($result->RecordCount() > 0) $val = $result->fields['first_name'].' '.$result->fields['last_name']; if(!empty($val)) { # Get } } else { $val = ''; } if(empty($val)) { echo '