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