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

[eluser]TheFuzzy0ne[/eluser]
Make sure you're discarding the first row before you enter your loop.

As for error checking, so long as you know how many columns you're expecting, you can simply check each row using count() to make sure it has that number of columns. If it doesn't, it can show you an error that outputs the row, so you know where the problem is.


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



Theme © iAndrew 2016 - Forum software by © MyBB