No replies eh? Got you all baffled

Anyway I've 'released' my csv to mysql script to anyone who needs such a thing. It still has the above 'bug' in it. Probably a lot more besides. Whether it will actually cause problems in other peoples real life data is probably not that likely, but I've warned of the problem in the notes.
If anyone wants it it's at
http://www.imagefair.co.uk/miscellaneous.html