Hello,
Personal, I want an action to be performed over a certain amount of times defined through a form. For example:
The user chooses 5, then the code exempts 5 records in the database. Since each record must be incremental, for example, if you chose 5, then it will record in the field in each of the registers, sequentially, 1,2,3,4,5.
I thought I'd start like this:
$valor_escolhido = "5";
foreach($valor_escolhido as $vlr_esc){
$insert="INSERT INTO TABELA (campo1,campo2,campo3) VALUES ('$campo1','$campo2', '$valor_escolhido') ";
}
How would it look like ...?