Hey,
I'm trying to make a mysql query that will repeat itself X amount of times. The number X will be in a variable called $number.
I'm not very proficient in php, but I guess some sort of loop that repeats $number of times would work but I don't know how to do loops. Could someone help me out on this? Thanks a bunch!
The code I would like to repeat is:
$query = "INSERT INTO tickets (name,email) VALUES ('$name','$email')";
$result = mysql_query($query) or die ("error");
Adam