Menu
in the topic drop down select, you gave me
[code=php]
$accessLevels = array(1 => ‘Administrator’, 2 => ‘Member’);
echo “<select name=’edit_accesslvl’ size=’1′>n”;
foreach($accessLevels as $key => $value)
{
$selected = ($key == $queryrow[‘accesslvl’]) ? ” selected=’selected'” : ”;
echo “<option value=’$key’$selected>$value</option>n”;
}
echo “</select><p>”;
which of course does create a drop down with the correct access level selected, but Now I want that same thing, but out of a drop down, I simply want it to echo the correct one, not each one, But I am unsure how to do this. So I come to you.