so I am using php to retrieve data from mysql database. This data is in the form of a number. I want to echo the same number of images tags according to that number. I do not want to use if statement because I do not know what the number will be (it is dynamic prosses). Any thoughts ?
for example if the number is 5 the result should be :
<img src=''>
<img src=''>
<img src=''>
<img src=''>
<img src=''>
Do a for loop
with
$nyour number from the db: