I just can\'t seem to get this query right. Basically I\'m taking a csv from a form and trying to load it into the database. I took the majority of the query from phpmyadmin. i
You need to escape the slash for the lines terminated clause, otherwise you just added a newline to your query.
LINES TERMINATED BY '\\n'
Mysql will just get \n, but PHP tries to interpret those so you have to escape them.
\n
You may have other issues, but you haven't told us what happens.