1
I want to convert an entire number from the BD into an Array, for example:
- I have the number of deliveries registered in the BD, let’s assume that the 'x' production is completed in 5 deliveries.
- this number 5 is registered in the BD as a String, an integer.
- when in the system the user is delivering the production, he has to inform for which delivery he is producing.
Hence I would like to pull a Select from 1 to 5 (which is the number of deliveries in this example) . Does anyone know how to make PHP check that the example number 5 can be read from 1 to 5??
You are (very) confused what you want.
– Inkeliz
You want to add N
options
of<select>
based on the last/highest number of deliveries?– rray
Guys, thanks for all your help, but the friend’s code solved, it was really simple: <? php $start = 1; $ultimo = 5; $arr = range($start, $last); echo '<pre>'; print_r($arr); ?>
– Denis L. Murara
Mark his answer as the correct one.
– mutlei