That error indicates that the number of columns you are inserting into does not match the number of values you are inserting.
You should use mysql_real_escape_string to handle the quotes for each value, or an adapter that has prepared statements, such as PDO.
You should also look into MySQL's LOAD DATA ... http://dev.mysql.com/doc/refman/5.1/en/load-data.h tml



