Hi all, first post here - thanks in advance for any help offered ...
I'm trying to create a very basic organizer script using PHP and MySQL. The user uploads a tab-delimited text file which contains three columns. I use file() to read the contents of the text file into an array.
Now, I'm stumped ... how do I write the contents of that array into the database? I've preconfigured the database so that it has three fields to match the three that will be in the text file, plus a numerical key field (with auto_increment set to true). I'm just beginning to wrap my head around the way PHP works with arrays ... very different from other languages. Can anyone offer some guidance?
Best,
GG