for($y=1; $y<=1000; $y++) { $sql= "INSERT INTO kodlar VALUES ('','$y')"; mysql_query($sql, $baglanti); }