Hello everyone.
I am trying to figure out how to do the following.
I have a variable that represents a quantity....lets say
$number = 4
I want to be able to write a script that takes that number and loops a MySQL insert statement.
For example......something......like....
If $number = 4 then run the following query 4 times...... if the number = 7 then run the query 7 times, etc.....
Basically, I am building an admin tool for a gift certificate. The admin will know how many gift certificates to create based on the $number.....and it will need to insert each certificate seperately and assign a different ID number.
Hope I explianed this well....and thank you for the help.