Better import program in php

It automatically finds the number of columns and row to import into a
mysql database.