$query="LOAD DATA LOCAL INFILE 'bd.txt' INTO TABLE tblprojet"; mysql_query($query) or die(mysql_error()); mysql_close(); ?>Try above stuff