Ich vermute, deine Beschreibung stimmt so nicht ganz. Ich meinte, im 2. Kästchen sollte posy immer noch 0 sein.
Dann den Ansatz von
XGremliN weiter verfolgen, etwa so:
PHP-Code:
$titel = 1;
$werte = array();
for ($x = 0;$x < 100;$x += 10){
for ($y= 0;$y < 100;$y += 10)
$werte[] = "($titel, $x, $y, 10, 10)";
$titel ++;
}
}
$sql = "INSERT INTO tabelle
(titel posx, posy, width, height)
VALUES" . implode(', ', $werte);
..... // DB-Operationen