Create a script to read the csv file, parse it into an array and then create the insert statements. see http://www.php.net/fgetcsv