0
Hello.
How to make a While
within an hour initial / final and in 30-minute multiples.
Example:
<option value="08:00">08:00</option>
<option value="08:30">08:30</option>
<option value="09:00">09:00</option>
<option value="09:30">09:30</option>
.
.
.
<option value="20:00">20:00</option>
My code
<select name="pick-up-time" id="pick-up-time">
<?php
$horaInicial = "08:00";
$horaFinal = "20:00";
do{
?>
<option value="00:00">00:00</option>
<?php } while ($row_rsLoja = $rsLoja->fetch_assoc()); ?>
</select>
I didn’t get it right, you want to generate an option with value of 30 mintuos per 24h?
– Martins Luan
I need to make the loop picking the initial hour until the final, only displaying every 30 minutes, as in the example.
– Tiago