B
Well, looks like I'm responsible for a WTF! You are right ammoQ.. I completely overlooked the fact that the returned value has to go somewhere. :-\ (trying to code and debug after 3 days without sleep = bad idea). Thank you for that.
In reply to the person above, the problem with MySQL's native CSV import, as well as fgetcsv() in PHP is that some of the fields in the CSV contain double-quotation marks, which the CSV uses as enclosure for fields, and I can't change the enclosure (the CSV is getting created from a Paradox DB which an in-house program uses, and the conversion tool only allows using " as the field enclosure). So, when the native functions try to parse it, it creates all sorts of messes where data isn't where it should be. So, I had to write my own code to properly split it, and insert it into a database.
Regards,Bradley WilliamsNortheast Metrology