The goal is to create a database with millions of X and Y records (these are coordinates, values from 0 to 1000).
What I thought of :
$x = 0; $y = 0; while ($y <= 1000) { $result = mysql_query("INSERT INTO map (x,y) VALUES('$x','$y')"); $y++; if ($y > 1000) { $x++; $y = 0; } }
What did not work out? Write to the database is only up to 29th record.
Question. How to make my decision work (if it is possible and adequate)? Or how else can it be done?
Thank you in advance.