Like this??
PHP Code:
$formpmid = 1;
if ($normalanswer1 != ''){
$result = $DB_site->query("SELECT userid
FROM " . TABLE_PREFIX . "userfield
WHERE (field19 = '" . addslashes($normalanswer1) . "')
OR (field26 = '" . addslashes($normalanswer1) . "')
OR (field15 = '" . addslashes($normalanswer1) . "')
OR (field25 = '" . addslashes($normalanswer1) . "')");
while ($usersid = $DB_site->fetch_array($result))
{
$formpmid = $usersid['userid'];
}
}