in reply to How to insert a tab delimited text file to a mysql database

What am i doing wrong?
without looking to closely at your code - what error or what inexpected result are you getting? i missed that in your posting.

update: where do you set the variable $file? did you forget to assign the split-result to it? are you using strict?