Никогда не делать так:
$i = 1; while (1) { mysql_query("INSERT INTO `table` SET `number`=".$i); ++$i; }