Yeah,
that's cuz I did not post the whole script. here ya go 🙂)
<?php
echo '<label>';
echo '<select name="rank">';
while ($rank = mysql_fetch_assoc($rank_result))
{
echo'<span style="color:FFFFFF"><option>'.$rank['rank'].'</option>';
}
echo '</select>';
echo '</label>';
echo '</div>';
?>
that gives me all the options.
[code=php] <?php
echo '<label>';
echo '<select name="rank">';
while ($rank = mysql_fetch_assoc($rank_result))
{
if($rank['rank']==$rank_current)echo'<option>'.$rank['rank'].'</option>';
}
echo '</select>';
echo '</label>';
echo '</div>';
?>[/code]
only gives me the current selected value.
there has to be a way to get the best of both worlds