Welcome Guest, Not a member yet? Register   Sign In
CSV upload, once uploaded to a temp folder overwrite the existing database
#54

[eluser]TheFuzzy0ne[/eluser]
You can just call:
Code:
fgetcsv($fh, 1000, ',');
to discard the first row.

As for your error. Please check the CSV for that row. There may be an extra column on the end if there's a space, which would explain the problem. You may need to add a little error checking to make sure each row has exactly the number of columns you expect it to have.


Messages In This Thread
CSV upload, once uploaded to a temp folder overwrite the existing database - by El Forum - 04-08-2013, 05:49 AM



Theme © iAndrew 2016 - Forum software by © MyBB