I am using MySQL with php. Via php script I am trying to import a csv file with the following request
LOAD DATA LOCAL INFILE '$file' INTO TABLE userstable FIELDS TERMINATED BY ',' LINES TERMINATED BY '\n' IGNORE 1 LINES (name, univ, mobile);
I can successfully import the file into the database tables, but I can see hidden formatting characters (like in a word, powerpoint, etc.) in all cells under the last ie mobile column.
How to avoid inserting into a table
source share