So you suggest the php to be;
PHP Code:
$allranks=$DB_site->query("SELECT rankcategories.cat_name, userfield.rank, COUNT(*) AS count FROM userfield");
$dropdownbits='';
while ($thisrank=$DB_site->fetch_array($allranks)) {
if ($rankid==$thisrank[cat_id]) {
$ranksel='selected';
} else {
$ranksel='';
}
eval("\$dropdownbits .= \"".gettemplate('multirank_dropdownbit')."\";");
}
Would that would? if not could you please show me what would.