$i = 1; while ($i <= 100000) { $eintrag = "INSERT INTO id<?php echo $i; ?> (zahl) VALUES ('$zahl')"; $i++; }