guys, I have the following case: I have the following code:
$sql ="SELECT * FROM monto LIMIT $limite_base, $l ";
$resultadosql = mysqli_query($db, $sql);
while ($rowsql=mysqli_fetch_row($resultadosql)){
printf ("%s\nBsS\n", $rowsql[1]);
$montos_permitidos = $rowsql[1];
}
Practically what I want is that the variable $ amounts_allowed is equal to the output that printf gives me but I have not managed to do it. If I leave it like this the variable $ amounts allowed allows me to output the last data of my Database. The values in my table are something like this:
id monto
1 20
2 30
3 40
4 50
5 60
For me it was ideal that the output was something similar to:
20 BsS, 30 BsS y 40 BsS
Thanks in advance for the help you can give me.