--------------------------------------------------------
A bit of pseudo code to get the picture
CREATE TABLE $table_name ( id int(11) NOT NULL auto_increment, field1 varchar(10), date_posted date, PRIMARY KEY (id) )
LOAD DATA INFILE '$textfile' replace INTO TABLE $table_name
-----------------------------------------------------------
However the dates in the $textfile are in the format dd-mm-yyyy but MYSQL seems to only like to INSERT them if they are in the format yyyy-mm-dd... how can i easily get around this



