I am using the script:
$file=fopen('part1.csv', 'r');
mysql_connect('localhost', '~~~', '~~~') or die(mysql_error());
mysql_select_db('Stubby') or die(mysql_error());
while (($buffer = fgets($file, 4096)) !== false) {
//echo $buffer;
$q = mysql_query('INSERT INTO allCombos (combo) VALUES (\'' . $buffer . '\')') or die(mysql_error());
}
fclose($file);
To load the very long contents of a CSV into a database. The CSV has around 3.5M lines. The querys stop at 1273459 lines. Why?