That is how I have ended up doing it.

I created a function to check each field in each row, and create an array of 
structures. Each array element represents a row in the CSV, if there is an 
error it populates the structure in the array element that corresponds to the  
curren trow of the CSV file. Later I check for structures in the array that are 
not empty and generate an error report for the failed rows, and suck the rest 
into the DB.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:186044
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to