Hi,
Please check following code.
<select name="adults" class="full-width">
<?php
for ( $i = 1; $i <= 10; $i++ ) {
$selected = ( $i == $adults ) ? 'selected' : '';
echo '<option value="' . esc_attr( $i ) . '" ' . $selected . '>' . esc_html( $i ) . '</option>';
}
?>
</select>
You should get minimum_people before this code.
If this variable is $min, then the code can be following.
<select name="adults" class="full-width">
<?php
for ( $i =$min; $i <= 10; $i++ ) {
$selected = ( $i == $adults ) ? 'selected' : '';
echo '<option value="' . esc_attr( $i ) . '" ' . $selected . '>' . esc_html( $i ) . '</option>';
}
?>
</select>
I think you can understand it.
And I recommend you hire a developer to do it.
Regards, C-Themes