i have some csv file. like this #XXX;XXX;XXX;XXX;, "xxx;""xxx"";XXX;yyy", "xxx;""xxx"";XXX;yyy", "xxx;""xxx"";XXX;yyy", "xxx;""xxx"";XXX;yyy", Code (markup): i want import to MySQL. with remove 1st row (# line) and remove " marks. this is my coding. $query = "load data local infile '/sample.csv' into table mytable fields terminated by ';' lines terminated by '\n' (aa, bb, cc, dd)# Affected rows: 1"; Code (markup): data was insert to mysql database. but ddnt remove 1st row. and ddnt remove "" marks. Help me in Advance Thanks
you might try using something like PHPmyadmin and letting it take care of importing the CSV for you. It can parse the marks by default.