I have a menu list on an update record page that I am trying to pre populate with the number in that database field. I'd like to make the initial value equal to $row_rs_experience['duration_days']
This is the list menu code I have at present
<?php $days=$row_rs_experience['duration_days']; ?>
<select name="duration_days" class="formrightcolumnskinny" id="duration_days">
for( $i=0; $i<=365; $i++ )
<option value="<?php echo$i;?>" selected="selected"><?php echo $days;?>
<?php ;} ?>
That's the closest I've got. It does select the right value, which is great but when I open up the menu I just get a list only containing that same value - 365 times. Anyone know where I am going wrong?