User Profile
Collapse
-
Thanks for the tip... that got me into looking at the code that inserted the data in the database. It turns out I hadn't accounted for single quotes in some of the fields that was breaking up my arguments. I actually had about 10 rows not being entered into the database. -
fgetcsv() doesn't get last row in file
I have a form set up to allow someone to upload a .csv and populate its data into a database using the fgetcsv() function. All of the code works fine because everything in the .csv file is populated into the database just fine, except for the very last row of data. I have tried several different ways of using the fgetcsv(), including:
[php]
while ($result = fgetcsv($handle )) {
while (($result = fgetcsv($handle )) !=...
No activity results to display
Show More
Leave a comment: