Hi guys
I was hoping you could help I would like to add 10000 records in mysql db.All once with after running a single php script. in one of the fields should generate 10000 rand generated numbers. Any suggests would really help. I was thinking of a for loop.
<?php
for ($i=1; $i<=10000; $i++)
{
$code=rand(10000,999999);
$name=Peter.rand(1000,9999);
mysql_query("INSERT INTO Persons (id,FirstName, LastName, Age)
VALUES (NULL,'$name', 'Griffin', '35','$code')");
}
?>
Please help