I have a file and I need the save the content of the file in my MySQL database. Here is the code that I am using to parse the file:
$lines = file($tmp_filenam
try changing:
... $data[$key] = $row;
to
... $data[][$key] = $row;