$flds = $DB_site->query_first("SELECT field5, field9 FROM userfield WHERE userid='$bbuserinfo[userid]'"); $field5 = $flds[field5]; $field9 = $flds[field9];