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

[eluser]TheFuzzy0ne[/eluser]
All you're doing is explode()ing the file name. Since that's only a single line, you're array only has a single line, which you're removing with array_shift. You need to open the file in order to obtain any data from it. The array that $this->upload->data() returns is simply information about the uploaded file, not the file itself.

Debug, debug, debug! Check your code each step of the way. Output arrays and strings to make sure they contain the data you think they do.


Messages In This Thread
CSV upload, once uploaded to a temp folder overwrite the existing database - by El Forum - 03-21-2013, 12:45 PM



Theme © iAndrew 2016 - Forum software by © MyBB